forked from OSchip/llvm-project
llvm-reduce: Inform MRI of used phys reg masks
I'm not sure how to directly observe this invisible cache for a test.
This commit is contained in:
parent
3217ca0863
commit
e33b07f859
|
@ -35,6 +35,11 @@ static std::unique_ptr<MachineFunction> cloneMF(MachineFunction *SrcMF) {
|
|||
for (auto &SrcMI : SrcMBB) {
|
||||
for (unsigned I = 0, E = SrcMI.getNumOperands(); I < E; ++I) {
|
||||
auto &DMO = SrcMI.getOperand(I);
|
||||
if (DMO.isRegMask()) {
|
||||
DstMRI->addPhysRegsUsedFromRegMask(DMO.getRegMask());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!DMO.isReg())
|
||||
continue;
|
||||
Register SrcReg = DMO.getReg();
|
||||
|
|
Loading…
Reference in New Issue