Skip to content

Commit 6fa1d12

Browse files
committed
ProcessImplicitDefs: Use required properties instead of isSSA assert
1 parent 8ed2bd1 commit 6fa1d12

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/CodeGen/ProcessImplicitDefs.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ class ProcessImplicitDefs : public MachineFunctionPass {
4646
void getAnalysisUsage(AnalysisUsage &au) const override;
4747

4848
bool runOnMachineFunction(MachineFunction &MF) override;
49+
50+
virtual MachineFunctionProperties getRequiredProperties() const override {
51+
return MachineFunctionProperties().set(
52+
MachineFunctionProperties::Property::IsSSA);
53+
}
4954
};
5055
} // end anonymous namespace
5156

@@ -141,7 +146,6 @@ bool ProcessImplicitDefs::runOnMachineFunction(MachineFunction &MF) {
141146
TII = MF.getSubtarget().getInstrInfo();
142147
TRI = MF.getSubtarget().getRegisterInfo();
143148
MRI = &MF.getRegInfo();
144-
assert(MRI->isSSA() && "ProcessImplicitDefs only works on SSA form.");
145149
assert(WorkList.empty() && "Inconsistent worklist state");
146150

147151
for (MachineBasicBlock &MBB : MF) {

0 commit comments

Comments
 (0)