mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-12 15:51:35 +00:00
When replacing a floating-point comparison with an integer
comparison, use takeName to give the integer comparison a name. llvm-svn: 72367
This commit is contained in:
parent
fdba9c8fce
commit
ccdd18130a
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user