[PATCH] D129817: [SelectOpti] Auto-disable other cmov optis when the new select-opti pass is enabled

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 12:45:31 PDT 2022


davidxl added inline comments.


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:6719
+  // If the SelectOptimize pass is enabled, selects have already been optimized.
+  if (!getCGPassBuilderOption().DisableSelectOptimize)
+    return false;
----------------
select optimization also depends on other conditions such as PGO etc for now. Should we check if it is actually enabled?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129817/new/

https://reviews.llvm.org/D129817



More information about the llvm-commits mailing list