[llvm] r206912 - [Constant Hoisting] Print the instructions in the correct order for debugging. No functional change.

Juergen Ributzka juergen at apple.com
Tue Apr 22 11:06:52 PDT 2014


Author: ributzka
Date: Tue Apr 22 13:06:51 2014
New Revision: 206912

URL: http://llvm.org/viewvc/llvm-project?rev=206912&view=rev
Log:
[Constant Hoisting] Print the instructions in the correct order for debugging. No functional change.

Modified:
    llvm/trunk/lib/Transforms/Scalar/ConstantHoisting.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/ConstantHoisting.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/ConstantHoisting.cpp?rev=206912&r1=206911&r2=206912&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/ConstantHoisting.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/ConstantHoisting.cpp Tue Apr 22 13:06:51 2014
@@ -488,8 +488,8 @@ void ConstantHoisting::emitBaseConstants
       ClonedCastInst->insertAfter(CastInst);
       // Use the same debug location as the original cast instruction.
       ClonedCastInst->setDebugLoc(CastInst->getDebugLoc());
-      DEBUG(dbgs() << "Clone instruction: " << *ClonedCastInst << '\n'
-                   << "To               : " << *CastInst << '\n');
+      DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n'
+                   << "To               : " << *ClonedCastInst << '\n');
     }
 
     DEBUG(dbgs() << "Update: " << *ConstUser.Inst << '\n');





More information about the llvm-commits mailing list