We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aadd23 commit a5fd7eeCopy full SHA for a5fd7ee
llvm/lib/CodeGen/RemoveLoadsIntoFakeUses.cpp
@@ -104,11 +104,9 @@ bool RemoveLoadsIntoFakeUses::runOnMachineFunction(MachineFunction &MF) {
104
if (MI.isFakeUse()) {
105
if (MI.getNumOperands() == 0 || !MI.getOperand(0).isReg())
106
continue;
107
- const MachineOperand &FakeUseOp = MI.getOperand(0);
108
// Track the Fake Uses that use these register units so that we can
109
// delete them if we delete the corresponding load.
110
- if (FakeUseOp.isReg())
111
- RegFakeUses.push_back(&MI);
+ RegFakeUses.push_back(&MI);
112
// Do not record FAKE_USE uses in LivePhysRegs so that we can recognize
113
// otherwise-unused loads.
114
0 commit comments