[clang] [llvm] [PowerPC] Use the 16-byte stack and vector alignment on FreeBSD (PR #232336)
Piotr Kubaj via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 18 10:05:59 PDT 2026
================
@@ -276,8 +276,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()))
+ // which is 256 and 512 bytes - way over aligned. FreeBSD uses the same ELFv2
+ // ABI as Linux, so it shares the stack and vector alignment.
----------------
pkubaj wrote:
Reworded, comment fixed.
https://github.com/llvm/llvm-project/pull/232336
More information about the cfe-commits
mailing list