[llvm] [CodeGen] Port selection dag isel to new pass manager (PR #83567)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 17:56:15 PST 2024


================
@@ -406,64 +432,117 @@ static void computeUsesMSVCFloatingPoint(const Triple &TT, const Function &F,
   }
 }
 
-bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
+PreservedAnalyses
+SelectionDAGISelPass::run(MachineFunction &MF,
+                          MachineFunctionAnalysisManager &MFAM) {
   // If we already selected that function, we do not need to run SDISel.
-  if (mf.getProperties().hasProperty(
+  if (MF.getProperties().hasProperty(
----------------
paperchalice wrote:

This is introduced in https://github.com/llvm/llvm-project/commit/e063e1f68a43354795a626b6546c50ade038437e, GlobalISel may fallback to selection dag.

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


More information about the llvm-commits mailing list