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:
Owen Anderson 2008-08-05 22:24:40 +00:00
parent 0b101b0399
commit 24d79ba2ef

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