[llvm-branch-commits] [llvm] [InstCombine] Canonicalize atomicrmw sub of a constant to add (PR #232626)
Harrison Hao via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Oct 16 00:30:23 PDT 2026
harrisonGPU wrote:
> Can you please sanity check codegen on other targets? I expect this will be fine, but we should check if any may need a reverse transform.
This is NVPTX example: https://godbolt.org/z/rKPxGhfcf
This is x86 example: https://godbolt.org/z/q1P1jMPEa
This is ARM example: https://godbolt.org/z/j5oasPW6P
To be honest, do this canonicalize, I prefer to do some other optimization more easily. :-)
https://github.com/llvm/llvm-project/pull/232626
More information about the llvm-branch-commits
mailing list