Didn't break any tests, but did unnecessary extra work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254529
91177308-0d34-0410-b5e6-
96231b3b80d8
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;