summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PBQP/HeuristicBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/PBQP/HeuristicBase.h')
-rw-r--r--lib/CodeGen/PBQP/HeuristicBase.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/PBQP/HeuristicBase.h b/lib/CodeGen/PBQP/HeuristicBase.h
index 3bb24e1cc3..37442317bb 100644
--- a/lib/CodeGen/PBQP/HeuristicBase.h
+++ b/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;
+ }
}
}