Index: include/llvm/CodeGen/GlobalISel/Legalizer.h =================================================================== --- include/llvm/CodeGen/GlobalISel/Legalizer.h +++ include/llvm/CodeGen/GlobalISel/Legalizer.h @@ -54,6 +54,11 @@ MachineFunctionProperties::Property::Legalized); } + MachineFunctionProperties getClearedProperties() const override { + return MachineFunctionProperties() + .set(MachineFunctionProperties::Property::NoPHIs); + } + bool combineExtracts(MachineInstr &MI, MachineRegisterInfo &MRI, const TargetInstrInfo &TII); Index: include/llvm/CodeGen/GlobalISel/RegBankSelect.h =================================================================== --- include/llvm/CodeGen/GlobalISel/RegBankSelect.h +++ include/llvm/CodeGen/GlobalISel/RegBankSelect.h @@ -633,6 +633,11 @@ MachineFunctionProperties::Property::RegBankSelected); } + MachineFunctionProperties getClearedProperties() const override { + return MachineFunctionProperties() + .set(MachineFunctionProperties::Property::NoPHIs); + } + /// Walk through \p MF and assign a register bank to every virtual register /// that are still mapped to nothing. /// The target needs to provide a RegisterBankInfo and in particular