aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-04-30 22:11:59 +0000
committerReid Kleckner <reid@kleckner.net>2015-04-30 22:11:59 +0000
commit60d5232be2dc049e5edac17c1b6e4847edb1b9ff (patch)
tree79925f03cf76907b177bbd0f2f8cce1bcb2ed3e0 /clang/lib/CodeGen/CodeGenFunction.cpp
parente48484c64f0b5567a84c863a79577a698b8ffc05 (diff)
downloadllvm-60d5232be2dc049e5edac17c1b6e4847edb1b9ff.zip
llvm-60d5232be2dc049e5edac17c1b6e4847edb1b9ff.tar.gz
llvm-60d5232be2dc049e5edac17c1b6e4847edb1b9ff.tar.bz2
[X86] Use 4 byte preferred aggregate alignment on Win32
This helps reduce the frequency of stack realignment prologues in 32-bit X86 Windows code. Before this change and the corresponding clang change, we would take the max of the type preferred alignment and the explicit alignment on the alloca. If you don't override aggregate alignment in datalayout, you get a default of 8. This dates back to 2007 / r34356, and changing it seems prohibitively difficult at this point. llvm-svn: 236270
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions