diff options
author | Andrew Trick <atrick@apple.com> | 2013-10-16 18:30:23 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-10-16 18:30:23 +0000 |
commit | 81f69410cb942079964481aba8d1c4739b77290f (patch) | |
tree | 5968767a5aeb529c1e87454f25873eaffdd30564 /lib | |
parent | 49978e61250a7229ad1040b002a609858f158584 (diff) | |
download | external_llvm-81f69410cb942079964481aba8d1c4739b77290f.zip external_llvm-81f69410cb942079964481aba8d1c4739b77290f.tar.gz external_llvm-81f69410cb942079964481aba8d1c4739b77290f.tar.bz2 |
After PostRA scheduling, don't set kill flags on undef operands.
This should fix the ATOM buildbot failing on break-avx-dep.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/PostRASchedulerList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp index b8747b9..1afc1ec 100644 --- a/lib/CodeGen/PostRASchedulerList.cpp +++ b/lib/CodeGen/PostRASchedulerList.cpp @@ -515,11 +515,11 @@ void SchedulePostRATDList::FixupKills(MachineBasicBlock *MBB) { // 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; |