File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ class ProcessImplicitDefs : public MachineFunctionPass {
46
46
void getAnalysisUsage (AnalysisUsage &au) const override ;
47
47
48
48
bool runOnMachineFunction (MachineFunction &MF) override ;
49
+
50
+ virtual MachineFunctionProperties getRequiredProperties () const override {
51
+ return MachineFunctionProperties ().set (
52
+ MachineFunctionProperties::Property::IsSSA);
53
+ }
49
54
};
50
55
} // end anonymous namespace
51
56
@@ -141,7 +146,6 @@ bool ProcessImplicitDefs::runOnMachineFunction(MachineFunction &MF) {
141
146
TII = MF.getSubtarget ().getInstrInfo ();
142
147
TRI = MF.getSubtarget ().getRegisterInfo ();
143
148
MRI = &MF.getRegInfo ();
144
- assert (MRI->isSSA () && " ProcessImplicitDefs only works on SSA form." );
145
149
assert (WorkList.empty () && " Inconsistent worklist state" );
146
150
147
151
for (MachineBasicBlock &MBB : MF) {
You can’t perform that action at this time.
0 commit comments