[llvm] r192824 - After PostRA scheduling, don't set kill flags on undef operands.

Andrew Trick atrick at apple.com
Wed Oct 16 11:30:23 PDT 2013


Author: atrick
Date: Wed Oct 16 13:30:23 2013
New Revision: 192824

URL: http://llvm.org/viewvc/llvm-project?rev=192824&view=rev
Log:
After PostRA scheduling, don't set kill flags on undef operands.

This should fix the ATOM buildbot failing on break-avx-dep.ll.

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

Modified: llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp?rev=192824&r1=192823&r2=192824&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp Wed Oct 16 13:30:23 2013
@@ -515,11 +515,11 @@ void SchedulePostRATDList::FixupKills(Ma
 
     // Examine all used registers and set/clear kill flag. When a
     // register is used multiple times we only set the kill flag on
-    // the first use.
+    // the first use. Don't set kill flags on undef operands.
     killedRegs.reset();
     for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
       MachineOperand &MO = MI->getOperand(i);
-      if (!MO.isReg() || !MO.isUse()) continue;
+      if (!MO.isReg() || !MO.isUse() || MO.isUndef()) continue;
       unsigned Reg = MO.getReg();
       if ((Reg == 0) || MRI.isReserved(Reg)) continue;
 





More information about the llvm-commits mailing list