[PATCH] D157265: [AMDGPU] Reorder atomic optimizer to avoid CAS loop.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 10:12:05 PDT 2023
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
Maybe should wait until the simplifycfg patch is ready to go to avoid regressions
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:1006-1008
+ if ((TM.getTargetTriple().getArch() == Triple::amdgcn) &&
+ (TM.getOptLevel() >= CodeGenOpt::Less) &&
+ (AMDGPUAtomicOptimizerStrategy != ScanOptions::None)) {
----------------
don't need all the paretheses
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157265/new/
https://reviews.llvm.org/D157265
More information about the llvm-commits
mailing list