diff options
author | Owen Anderson <resistor@mac.com> | 2008-08-05 22:24:40 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-08-05 22:24:40 +0000 |
commit | 24d79ba2ef120ed9708ac10fc9fa146334df00c7 (patch) | |
tree | 72e69f3cea771809d0bf5f458f36976c190a8e40 /lib/CodeGen | |
parent | 0b101b03999b25d17c40daae2b6b4df3ee51d1fb (diff) | |
download | external_llvm-24d79ba2ef120ed9708ac10fc9fa146334df00c7.zip external_llvm-24d79ba2ef120ed9708ac10fc9fa146334df00c7.tar.gz external_llvm-24d79ba2ef120ed9708ac10fc9fa146334df00c7.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/UnreachableBlockElim.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/UnreachableBlockElim.cpp b/lib/CodeGen/UnreachableBlockElim.cpp index ca682fd..f1e3aab 100644 --- a/lib/CodeGen/UnreachableBlockElim.cpp +++ b/lib/CodeGen/UnreachableBlockElim.cpp @@ -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++; } |