forked from OSchip/llvm-project
Revert "[Pipeliner] Drop memrefs instead of creating ones with size UINT64_MAX"
This reverts r326256. One testcase needs to be updated. llvm-svn: 326259
This commit is contained in:
parent
f119bf99e5
commit
10ab103a58
|
@ -3099,10 +3099,8 @@ void SwingSchedulerDAG::updateMemOperands(MachineInstr &NewMI,
|
|||
int64_t AdjOffset = Delta * Num;
|
||||
NewMemRefs[Refs++] =
|
||||
MF.getMachineMemOperand(MMO, AdjOffset, MMO->getSize());
|
||||
} else {
|
||||
NewMI.dropMemRefs();
|
||||
return;
|
||||
}
|
||||
} else
|
||||
NewMemRefs[Refs++] = MF.getMachineMemOperand(MMO, 0, UINT64_MAX);
|
||||
}
|
||||
NewMI.setMemRefs(NewMemRefs, NewMemRefs + NumRefs);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue