[clang] [PowerPC] Fix incorrect store alignment for __builtin_vsx_build_pair() (PR #108606)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 17 12:18:43 PDT 2024


================
@@ -18197,7 +18197,7 @@ Value *CodeGenFunction::EmitPPCBuiltinExpr(unsigned BuiltinID,
       CallOps.push_back(Ops[i]);
     llvm::Function *F = CGM.getIntrinsic(ID);
     Value *Call = Builder.CreateCall(F, CallOps);
-    return Builder.CreateAlignedStore(Call, Ops[0], MaybeAlign(64));
+    return Builder.CreateAlignedStore(Call, Ops[0], MaybeAlign());
----------------
efriedma-quic wrote:

Oh, didn't realize there were multiple different types coming through here.  It's not worth it to duplicate the implementation of CreateStore... @nikic suggestion is fine, then.

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


More information about the cfe-commits mailing list