================
@@ -229,7 +229,9 @@ static std::string computePowerDataLayout(const Triple &T, 
StringRef ABIName) {
   // Specify the vector alignment explicitly. For v256i1 and v512i1, the
   // calculated alignment would be 256*alignment(i1) and 512*alignment(i1),
   // which is 256 and 512 bytes - way over aligned.
-  if (is64Bit && (T.isOSAIX() || T.isOSLinux()))
+  // FreeBSD uses the ELFv2 ABI and has the same 16-byte stack alignment as
+  // Linux.
+  if (is64Bit && (T.isOSAIX() || T.isOSLinux() || T.isOSFreeBSD()))
     Ret += "-S128-v256:256:256-v512:512:512";
----------------
nikic wrote:

I believe the default vector alignment has long since been fixed, and the 
explicit alignments here are now redundant. See 
https://llvm.godbolt.org/z/9KbTnrEs5.

https://github.com/llvm/llvm-project/pull/232336
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to