mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
Fix breakage on ARM/2008-04-10-ScavengerAssert.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b101b0399
commit
24d79ba2ef
@ -137,7 +137,8 @@ bool UnreachableMachineBlockElim::runOnMachineFunction(MachineFunction &F) {
|
||||
start++;
|
||||
phi->eraseFromParent();
|
||||
|
||||
F.getRegInfo().replaceRegWith(Output, Input);
|
||||
if (Input != Output)
|
||||
F.getRegInfo().replaceRegWith(Output, Input);
|
||||
} else
|
||||
start++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user