[llvm] [NewPM][CodeGen] Port `regallocfast` to new pass manager (PR #94426)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 5 01:25:44 PDT 2024


================
@@ -78,9 +78,9 @@ struct MachinePassModel
     auto PA = this->Pass.run(IR, AM);
 
     if constexpr (is_detected<has_get_set_properties_t, PassT>::value)
-      IR.getProperties().set(PassT::getSetProperties());
+      IR.getProperties().set(this->Pass.getSetProperties());
     if constexpr (is_detected<has_get_cleared_properties_t, PassT>::value)
-      IR.getProperties().reset(PassT::getClearedProperties());
+      IR.getProperties().reset(this->Pass.getClearedProperties());
----------------
paperchalice wrote:

I should move them into a dedicated function, like `getMachineFunctionPassPreservedAnalyses`, so `PassT().run(MF, MFAM)` can work properly...

https://github.com/llvm/llvm-project/pull/94426


More information about the llvm-commits mailing list