Fix breakage on ARM/2008-04-10-ScavengerAssert.ll.

llvm-svn: 54378
This commit is contained in:
Owen Anderson 2008-08-05 22:24:40 +00:00
parent 3dfa168d22
commit 3d4c06dd54
1 changed files with 2 additions and 1 deletions

View File

@ -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++;
}