ARM: set preferred aggregate alignment to 32 universally.
[oota-llvm.git] / lib / Target / ARM / ARMSubtarget.cpp
index a3ade981740dbf37e7c3beb4eb5aac9bc33b5b9e..bc04f37331eb0cbce6c40959a7aa3533c7122254 100644 (file)
@@ -123,10 +123,9 @@ static std::string computeDataLayout(ARMSubtarget &ST) {
   else
     Ret += "-v128:64:128";
 
-  // On thumb and APCS, only try to align aggregates to 32 bits (the default is
-  // 64 bits).
-  if (ST.isThumb() || ST.isAPCS_ABI())
-    Ret += "-a:0:32";
+  // Try to align aggregates to 32 bits (the default is 64 bits, which has no
+  // particular hardware support on 32-bit ARM).
+  Ret += "-a:0:32";
 
   // Integer registers are 32 bits.
   Ret += "-n32";