Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit d159899

Browse files
committed
Set the natural stack alignment for asm.js to 16 bytes.
1 parent f92a8f0 commit d159899

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/Basic/Targets.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -5102,8 +5102,11 @@ class AsmJSTargetInfo : public TargetInfo {
51025102
// the direction suggested here:
51035103
// https://bugzilla.mozilla.org/show_bug.cgi?id=904913#c21
51045104
// We can still set the preferred alignment to 16 bytes though.
5105+
//
5106+
// Set the natural stack alignment to 16 bytes to accomodate 128-bit
5107+
// aligned vectors.
51055108
DescriptionString = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-"
5106-
"f32:32:32-f64:64:64-p:32:32:32-v128:32:128-n32";
5109+
"f32:32:32-f64:64:64-p:32:32:32-v128:32:128-n32-S128";
51075110
}
51085111

51095112
void getDefaultFeatures(llvm::StringMap<bool> &Features) const {

0 commit comments

Comments
 (0)