[llvm] [Pass][CodeGen] Add some necessary passes for codegen (PR #70903)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 01:04:00 PDT 2023


================
@@ -124,6 +122,8 @@ DUMMY_FUNCTION_PASS("cfguard-check", CFGuardCheckPass, ())
 DUMMY_FUNCTION_PASS("gc-info-printer", GCInfoPrinterPass, ())
 DUMMY_FUNCTION_PASS("select-optimize", SelectOptimizePass, ())
 DUMMY_FUNCTION_PASS("callbrprepare", CallBrPrepare, ())
+DUMMY_FUNCTION_PASS("expand-large-div-rem", ExpandLargeDivRemPass, ())
----------------
paperchalice wrote:

`DUMMY_*` denote this pass has not been ported to the new pass system, if they are ported to the new pass system, the `DUMMY` prefix should be removed. These codes are used by `CodeGenPassBuilder.h` to register necessary IR analyses.
I searched code base for these two passes, and found that `ExpandLargeDivRemPass` and `ExpandLargeFpConvertPass` are still legacy pass.

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


More information about the llvm-commits mailing list