diff options
| author | Dan Gohman <gohman@apple.com> | 2009-05-24 18:09:01 +0000 | 
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-05-24 18:09:01 +0000 | 
| commit | fb56cf1b1d628a7c18648970aba0474d055b64dd (patch) | |
| tree | a2f1e2836c2e1e60512bde53240b7c3ca3bd7e15 | |
| parent | 291c2e04bd7cd2cb2b24791234e5be0e5b8aad66 (diff) | |
| download | bcm5719-llvm-fb56cf1b1d628a7c18648970aba0474d055b64dd.tar.gz bcm5719-llvm-fb56cf1b1d628a7c18648970aba0474d055b64dd.zip  | |
When replacing a floating-point comparison with an integer
comparison, use takeName to give the integer comparison a name.
llvm-svn: 72367
| -rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 670499062ec..f20d424724a 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -842,6 +842,7 @@ void IndVarSimplify::HandleFloatingPointIV(Loop *L, PHINode *PH) {    WeakVH WeakPH = PH;    // Delete old, floating point, exit comparision instruction. +  NewEC->takeName(EC);    EC->replaceAllUsesWith(NewEC);    RecursivelyDeleteTriviallyDeadInstructions(EC);  | 

