[llvm-commits] [llvm] r72367 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Dan Gohman gohman at apple.com
Sun May 24 11:09:01 PDT 2009


Author: djg
Date: Sun May 24 13:09:01 2009
New Revision: 72367

URL: http://llvm.org/viewvc/llvm-project?rev=72367&view=rev
Log:
When replacing a floating-point comparison with an integer
comparison, use takeName to give the integer comparison a name.

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

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=72367&r1=72366&r2=72367&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Sun May 24 13:09:01 2009
@@ -842,6 +842,7 @@
   WeakVH WeakPH = PH;
 
   // Delete old, floating point, exit comparision instruction.
+  NewEC->takeName(EC);
   EC->replaceAllUsesWith(NewEC);
   RecursivelyDeleteTriviallyDeadInstructions(EC);
 





More information about the llvm-commits mailing list