[clang] MIPS/Clang: Set HasUnalignedAccess false if +strict-align (PR #87257)
YunQiang Su via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 1 19:04:26 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;
----------------
wzssyqa wrote:
We cannot due to that +strict-align may be listed before +mips32/64.
I have some try. In all my try, +mips32/64 appeared before +strict-align.
But I am not sure that +mips32/64 will always appear before +strict-align.
https://github.com/llvm/llvm-project/pull/87257
More information about the cfe-commits
mailing list