RequirementMachine: Small fix for debug output

This commit is contained in:
Slava Pestov
2022-02-11 15:20:11 -05:00
parent 3a6a2b58b5
commit 65fda8092f

View File

@@ -411,16 +411,16 @@ findRuleToDelete(llvm::function_ref<bool(unsigned)> isRedundantRuleFn) {
if (!isRedundantRuleFn(ruleID))
continue;
if (!found) {
found = pair;
continue;
}
if (Debug.contains(DebugFlags::HomotopyReductionDetail)) {
llvm::dbgs() << "** Candidate " << rule << " from loop #"
<< pair.first << "\n";
}
if (!found) {
found = pair;
continue;
}
// 'rule' is the candidate rule; 'otherRule' is the best rule to eliminate
// we've found so far.
const auto &otherRule = getRule(found->second);