Skip to content

Commit

Permalink
ProcessImplicitDefs: Use required properties instead of isSSA assert
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm committed Apr 22, 2022
1 parent 8ed2bd1 commit 6fa1d12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion llvm/lib/CodeGen/ProcessImplicitDefs.cpp
Expand Up @@ -46,6 +46,11 @@ class ProcessImplicitDefs : public MachineFunctionPass {
void getAnalysisUsage(AnalysisUsage &au) const override;

bool runOnMachineFunction(MachineFunction &MF) override;

virtual MachineFunctionProperties getRequiredProperties() const override {
return MachineFunctionProperties().set(
MachineFunctionProperties::Property::IsSSA);
}
};
} // end anonymous namespace

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

for (MachineBasicBlock &MBB : MF) {
Expand Down

0 comments on commit 6fa1d12

Please sign in to comment.