[PATCH] D148199: [AMDGPU] Add a new command line argument amdgpu-atomic-optimizer-use-dpp
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 14:53:21 PDT 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:1121-1122
- if (isPassEnabled(EnableAtomicOptimizations, CodeGenOpt::Less)) {
+ if (isPassEnabled(EnableAtomicOptimizations, CodeGenOpt::Less) ||
+ isPassEnabled(EnableAtomicOptimizationsUsingDPP, CodeGenOpt::Less)) {
addPass(createAMDGPUAtomicOptimizerPass());
----------------
Two flags to enable the same pass is bad, and this doesn't change the pass behavior. The behavior change could be a pass parameter.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148199/new/
https://reviews.llvm.org/D148199
More information about the llvm-commits
mailing list