[clang] MIPS/Clang: Set HasUnalignedAccess false if +strict-align (PR #87257)
Nathan Sidwell via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 1 12:37:38 PDT 2024
================
@@ -330,6 +331,8 @@ class LLVM_LIBRARY_VISIBILITY MipsTargetInfo : public TargetInfo {
IsMicromips = true;
else if (Feature == "+mips32r6" || Feature == "+mips64r6")
HasUnalignedAccess = true;
+ else if (Feature == "+strict-align")
+ StrictAlign = true;
----------------
urnathan wrote:
Why not clear HasUnalignedAccess directly here? That's what AArch64 and ARM do.
https://github.com/llvm/llvm-project/pull/87257
More information about the cfe-commits
mailing list