Move this debug output into GenerateAllReuseFormula, to declutter
authorDan Gohman <gohman@apple.com>
Sun, 29 Aug 2010 15:21:38 +0000 (15:21 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 29 Aug 2010 15:21:38 +0000 (15:21 +0000)
the high-level logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112436 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 0566bf74c800cf542263c66176d13b2618e1626d..ad87fcaaa4cf4b1454383dc1e139302d7f0a5965 100644 (file)
@@ -2795,6 +2795,10 @@ LSRInstance::GenerateAllReuseFormulae() {
   }
 
   GenerateCrossUseConstantOffsets();
+
+  DEBUG(dbgs() << "\n"
+                  "After generating reuse formulae:\n";
+        print_uses(dbgs()));
 }
 
 /// If their are multiple formulae with the same set of registers used
@@ -3631,10 +3635,6 @@ LSRInstance::LSRInstance(const TargetLowering *tli, Loop *l, Pass *P)
   // to formulate the values needed for the uses.
   GenerateAllReuseFormulae();
 
-  DEBUG(dbgs() << "\n"
-                  "After generating reuse formulae:\n";
-        print_uses(dbgs()));
-
   FilterOutUndesirableDedicatedRegisters();
   NarrowSearchSpaceUsingHeuristics();