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

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 15:33:21 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(
----------------
aeubanks wrote:

unrelated, but do you know why we even have this check? seems like we should only ever run this once on any given function

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


More information about the llvm-commits mailing list