commit | 3d4c06dd54e42b9119fdb97e5d2ffcc31a0d5f33 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Tue Aug 05 22:24:40 2008 +0000 |
committer | Owen Anderson <resistor@mac.com> | Tue Aug 05 22:24:40 2008 +0000 |
tree | f850470595dac1963907191e493911b4da22aa16 | |
parent | 3dfa168d22162851a8445d589e51608e06ee32b0 [diff] [blame] |
Fix breakage on ARM/2008-04-10-ScavengerAssert.ll. llvm-svn: 54378
diff --git a/llvm/lib/CodeGen/UnreachableBlockElim.cpp b/llvm/lib/CodeGen/UnreachableBlockElim.cpp index ca682fd..f1e3aab 100644 --- a/llvm/lib/CodeGen/UnreachableBlockElim.cpp +++ b/llvm/lib/CodeGen/UnreachableBlockElim.cpp
@@ -137,7 +137,8 @@ start++; phi->eraseFromParent(); - F.getRegInfo().replaceRegWith(Output, Input); + if (Input != Output) + F.getRegInfo().replaceRegWith(Output, Input); } else start++; }