In the atomic optimizer, save doing a bunch of work and generating a
bunch of dead IR in the fairly common case where the result of an
atomic op (i.e. the value that was in memory before the atomic op was
performed) is not used.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 35339 Build 35338: arc lint + arc unit
Event Timeline
Comment Actions
Follow-on patches will also improve the generated code when the result is not needed.
Comment Actions
Test?
llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp | ||
---|---|---|
494 | Not sure if this ignores debug uses, but it probably needs to |
Not sure if this ignores debug uses, but it probably needs to