File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ bool RemoveLoadsIntoFakeUses::runOnMachineFunction(MachineFunction &MF) {
124
124
SmallDenseSet<MachineInstr *> FakeUsesToDelete;
125
125
SmallVector<MachineInstr *> RemainingFakeUses;
126
126
for (MachineInstr *&FakeUse : reverse (RegFakeUses)) {
127
- if (TRI-> regsOverlap (Reg, FakeUse-> getOperand ( 0 ). getReg () )) {
127
+ if (FakeUse-> readsRegister (Reg, TRI )) {
128
128
FakeUsesToDelete.insert (FakeUse);
129
129
RegFakeUses.erase (&FakeUse);
130
130
}
@@ -159,7 +159,7 @@ bool RemoveLoadsIntoFakeUses::runOnMachineFunction(MachineFunction &MF) {
159
159
// because any such FAKE_USE encountered prior is no longer relevant
160
160
// for later encountered loads.
161
161
for (MachineInstr *&FakeUse : reverse (RegFakeUses))
162
- if (!TRI-> regsOverlap (Reg, FakeUse-> getOperand ( 0 ). getReg () ))
162
+ if (FakeUse-> readsRegister (Reg, TRI ))
163
163
RegFakeUses.erase (&FakeUse);
164
164
}
165
165
}
You can’t perform that action at this time.
0 commit comments