diff options
author | Geoffrey Mainland <gmainlan@microsoft.com> | 2011-11-26 12:45:23 +0000 |
---|---|---|
committer | Geoffrey Mainland <gmainlan@microsoft.com> | 2013-09-22 22:33:59 -0400 |
commit | f8c51678b0e60aad8ee1e4c57af746fa792a3546 (patch) | |
tree | f90e8b0ef0d0c91dfdc70de054f800b1241e93f8 /compiler/codeGen/CgUtils.hs | |
parent | afdb2fc3d2013ced6c136853f4e24e84b6f150e9 (diff) | |
download | haskell-f8c51678b0e60aad8ee1e4c57af746fa792a3546.tar.gz |
Fixup stack spills when generating AVX instructions.
LLVM uses aligned AVX moves to spill values onto the stack, which requires
32-bye aligned stacks. Since the stack in only 16-byte aligned, LLVM inserts
extra instructions that munge the stack pointer. This is very very bad for the
GHC calling convention, so we tell LLVM to assume the stack is 32-byte
aligned. This patch rewrites the spill instructions that LLVM generates so they
do not require an aligned stack.
Diffstat (limited to 'compiler/codeGen/CgUtils.hs')
0 files changed, 0 insertions, 0 deletions