[llvm] [SROA] Prevent load atomic vector from being generated (PR #112432)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 20 07:48:12 PDT 2024


================
@@ -1247,6 +1247,12 @@ void LoadInst::AssertOK() {
          "Ptr must have pointer type.");
 }
 
+bool LoadInst::isValidAtomicTy(Type *Ty) {
+  if (!Ty->isIntOrPtrTy() && !Ty->isFloatingPointTy())
+    return false;
+  return true;
----------------
arsenm wrote:

Direct return of boolean expression 

https://github.com/llvm/llvm-project/pull/112432


More information about the llvm-commits mailing list