[PATCH] D101414: [AMDGPU] Disable the scalar IR, SDWA and load store vectorizer passes at -O1
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 29 15:15:44 PDT 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:904
- if (EnableScalarIRPasses)
+ if (EnableScalarIRPasses && TM.getOptLevel() > CodeGenOpt::Less)
addStraightLineScalarOptimizationPasses();
----------------
This seems like a weird interaction between flags. Maybe this should check if EnableScalarIRPasses was explicitly used? Or maybe we can just drop EnableScalarIRPasses entirely
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101414/new/
https://reviews.llvm.org/D101414
More information about the llvm-commits
mailing list