[PATCH] D86609: [AMDGPU][GlobalISel] Eliminate barrier if workgroup size is not greater than wavefront size
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 05:40:07 PDT 2020
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
This could be a pattern predicate but I guess it's not important
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp:1426
+bool AMDGPUInstructionSelector::selectSBarrier(MachineInstr &MI) const {
+ if (TM.getOptLevel() > CodeGenOpt::None) {
+ unsigned WGSize = STI.getFlatWorkGroupSizes(MF->getFunction()).second;
----------------
There's no real reason to check the opt level but I guess it does this already
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86609/new/
https://reviews.llvm.org/D86609
More information about the llvm-commits
mailing list