[llvm-commits] [llvm] r54378 - /llvm/trunk/lib/CodeGen/UnreachableBlockElim.cpp

Owen Anderson resistor at mac.com
Tue Aug 5 15:24:40 PDT 2008


Author: resistor
Date: Tue Aug  5 17:24:40 2008
New Revision: 54378

URL: http://llvm.org/viewvc/llvm-project?rev=54378&view=rev
Log:
Fix breakage on ARM/2008-04-10-ScavengerAssert.ll.

Modified:
    llvm/trunk/lib/CodeGen/UnreachableBlockElim.cpp

Modified: llvm/trunk/lib/CodeGen/UnreachableBlockElim.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/UnreachableBlockElim.cpp?rev=54378&r1=54377&r2=54378&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/UnreachableBlockElim.cpp (original)
+++ llvm/trunk/lib/CodeGen/UnreachableBlockElim.cpp Tue Aug  5 17:24:40 2008
@@ -137,7 +137,8 @@
             start++;
             phi->eraseFromParent();
             
-            F.getRegInfo().replaceRegWith(Output, Input);
+            if (Input != Output)
+              F.getRegInfo().replaceRegWith(Output, Input);
           } else
             start++;
         }





More information about the llvm-commits mailing list