[llvm] r175727 - Make another kill check LiveIntervals-aware.

Cameron Zwarich zwarich at apple.com
Wed Feb 20 23:02:30 PST 2013


Author: zwarich
Date: Thu Feb 21 01:02:30 2013
New Revision: 175727

URL: http://llvm.org/viewvc/llvm-project?rev=175727&view=rev
Log:
Make another kill check LiveIntervals-aware.

This brings the number of remaining failures in 'make check' without
LiveVariables down to 39, with 1 unexpectedly passing test.

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

Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=175727&r1=175726&r2=175727&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Thu Feb 21 01:02:30 2013
@@ -499,7 +499,7 @@ isProfitableToCommute(unsigned regA, uns
   // insert => %reg1030<def> = MOV8rr %reg1029
   // %reg1030<def> = ADD8rr %reg1029<kill>, %reg1028<kill>, %EFLAGS<imp-def,dead>
 
-  if (!MI->killsRegister(regC))
+  if (!isPlainlyKilled(MI, regC, LIS))
     return false;
 
   // Ok, we have something like:





More information about the llvm-commits mailing list