commit | 14fba294e1f2d619fe50b72d5fd88da2b17461dd | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Sun May 24 18:09:01 2009 +0000 |
committer | Dan Gohman <gohman@apple.com> | Sun May 24 18:09:01 2009 +0000 |
tree | 04de1245a9d73cc906a5b593bd51689378d86a10 | |
parent | 453aa4fbf1083cc7f646a0ac21e2bcc384a91ae9 [diff] [blame] |
When replacing a floating-point comparison with an integer comparison, use takeName to give the integer comparison a name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72367 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 6704990..f20d424 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -842,6 +842,7 @@ WeakVH WeakPH = PH; // Delete old, floating point, exit comparision instruction. + NewEC->takeName(EC); EC->replaceAllUsesWith(NewEC); RecursivelyDeleteTriviallyDeadInstructions(EC);