diff options
author | Dan Gohman <sunfish@mozilla.com> | 2014-03-03 14:09:52 -0800 |
---|---|---|
committer | Dan Gohman <sunfish@mozilla.com> | 2014-03-03 15:00:57 -0800 |
commit | d159899bf2ebd04f7b6620206223d4025cd34c5a (patch) | |
tree | a98c21506f2cca23c3bae3b783fcfd289a4c4d64 /lib | |
parent | f92a8f0ef8f7b349d653e97a8fb154719ef6117f (diff) |
Set the natural stack alignment for asm.js to 16 bytes.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Basic/Targets.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 43a21f2734..45d313b2ed 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -5102,8 +5102,11 @@ public: // the direction suggested here: // https://bugzilla.mozilla.org/show_bug.cgi?id=904913#c21 // We can still set the preferred alignment to 16 bytes though. + // + // Set the natural stack alignment to 16 bytes to accomodate 128-bit + // aligned vectors. DescriptionString = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-" - "f32:32:32-f64:64:64-p:32:32:32-v128:32:128-n32"; + "f32:32:32-f64:64:64-p:32:32:32-v128:32:128-n32-S128"; } void getDefaultFeatures(llvm::StringMap<bool> &Features) const { |