diff options
author | Fiona Glaser <escha@apple.com> | 2015-12-02 18:46:23 +0000 |
---|---|---|
committer | Fiona Glaser <escha@apple.com> | 2015-12-02 18:46:23 +0000 |
commit | 1075f6323fe1dc81878d5752483b04f42614bc17 (patch) | |
tree | c23c590c68700a629edcbe6731bc9d5fad2c9563 /llvm/lib/CodeGen | |
parent | 941bc915186b61253f4430c6ce34ffe49c57c262 (diff) | |
download | bcm5719-llvm-1075f6323fe1dc81878d5752483b04f42614bc17.tar.gz bcm5719-llvm-1075f6323fe1dc81878d5752483b04f42614bc17.zip |
Fix accidental off by one change
Didn't break any tests, but did unnecessary extra work.
llvm-svn: 254529
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index cb573f2effd..78985e01ef9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -1244,7 +1244,7 @@ static void CheckForLiveRegDefMasked(SUnit *SU, const uint32_t *RegMask, SmallSet<unsigned, 4> &RegAdded, SmallVectorImpl<unsigned> &LRegs) { // Look at all live registers. Skip Reg0 and the special CallResource. - for (unsigned i = 1, e = LiveRegDefs.size(); i != e; ++i) { + for (unsigned i = 1, e = LiveRegDefs.size()-1; i != e; ++i) { if (!LiveRegDefs[i]) continue; if (LiveRegDefs[i] == SU) continue; if (!MachineOperand::clobbersPhysReg(RegMask, i)) continue; |