summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PBQP/HeuristicBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/PBQP/HeuristicBase.h')
-rw-r--r--llvm/lib/CodeGen/PBQP/HeuristicBase.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/PBQP/HeuristicBase.h b/llvm/lib/CodeGen/PBQP/HeuristicBase.h
index 3bb24e1cc37..37442317bb6 100644
--- a/llvm/lib/CodeGen/PBQP/HeuristicBase.h
+++ b/llvm/lib/CodeGen/PBQP/HeuristicBase.h
@@ -174,8 +174,11 @@ namespace PBQP {
while (!finished) {
if (!optimalReduce())
- if (!impl().heuristicReduce())
+ if (impl().heuristicReduce()) {
+ getSolver().recordRN();
+ } else {
finished = true;
+ }
}
}
OpenPOWER on IntegriCloud