[llvm] [CodeGen] Port `SelectOptimize` to new pass manager (PR #74920)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 10 22:41:50 PST 2023
================
@@ -653,8 +655,11 @@ void CodeGenPassBuilder<Derived>::addIRPasses(AddIRPass &addPass) const {
addPass(ExpandReductionsPass());
// Convert conditional moves to conditional jumps when profitable.
- if (getOptLevel() != CodeGenOptLevel::None && !Opt.DisableSelectOptimize)
- addPass(SelectOptimizePass());
+ if (getOptLevel() != CodeGenOptLevel::None && !Opt.DisableSelectOptimize) {
+ // FIXME: this will trigger assertion!
+ addPass(RequireAnalysisPass<ProfileSummaryAnalysis, Module>());
----------------
arsenm wrote:
Not clear to me what this means
https://github.com/llvm/llvm-project/pull/74920
More information about the llvm-commits
mailing list