[llvm-commits] [llvm] r151226 - /llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Feb 22 17:22:16 PST 2012
Author: stoklund
Date: Wed Feb 22 19:22:15 2012
New Revision: 151226
URL: http://llvm.org/viewvc/llvm-project?rev=151226&view=rev
Log:
Handle regmasks in FixupKills.
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=151226&r1=151225&r2=151226&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp Wed Feb 22 19:22:15 2012
@@ -461,6 +461,10 @@
// are completely defined.
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
MachineOperand &MO = MI->getOperand(i);
+ if (MO.isRegMask())
+ for (unsigned i = 0, e = TRI->getNumRegs(); i != e; ++i)
+ if (MO.clobbersPhysReg(i))
+ KillIndices[i] = ~0u;
if (!MO.isReg()) continue;
unsigned Reg = MO.getReg();
if (Reg == 0) continue;
More information about the llvm-commits
mailing list