[llvm-branch-commits] [llvm] [AMDGPU] Enable atomic optimizer for divergent i64 and double values (PR #96934)
Jay Foad via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jul 1 03:34:38 PDT 2024
================
@@ -178,6 +178,21 @@ bool AMDGPUAtomicOptimizerImpl::run(Function &F) {
return Changed;
}
+static bool isOptimizableAtomic(Type *Ty) {
+ switch (Ty->getTypeID()) {
+ case Type::FloatTyID:
+ case Type::DoubleTyID:
+ return true;
+ case Type::IntegerTyID: {
+ unsigned size = Ty->getIntegerBitWidth();
----------------
jayfoad wrote:
```suggestion
unsigned Size = Ty->getIntegerBitWidth();
```
https://github.com/llvm/llvm-project/pull/96934
More information about the llvm-branch-commits
mailing list