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:
Krzysztof Parzyszek 2018-02-27 22:07:38 +00:00
parent f119bf99e5
commit 10ab103a58
1 changed files with 2 additions and 4 deletions

View File

@ -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);
}