[PATCH] D156301: [AMDGPU] Support FAdd/FSub global atomics in AMDGPUAtomicOptimizer.
Pravin Jagtap via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 2 21:11:46 PDT 2023
pravinjagtap added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp:676
+ OldValuePhiBitCasted = B.CreateBitCast(OldValuePhi, Int32Ty);
+ }
+ OldValue = B.CreateIntrinsic(
----------------
cdevadas wrote:
> You could use the ternary operator to initialize them.
> You could use the ternary operator to initialize them.
Wherever there are two bit-cast statements, I have used if loop and ternary operator for single bit-cast statement. I will update this to ternary at all places.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156301/new/
https://reviews.llvm.org/D156301
More information about the llvm-commits
mailing list