mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix accidental off by one change
Didn't break any tests, but did unnecessary extra work. llvm-svn: 254529
This commit is contained in:
parent
b7c1ca3252
commit
d1cd52a9e3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user