OSDN Git Service

Subzero: Force ebp-based frame when an alloca has a large alignment.
authorJim Stichnoth <stichnot@chromium.org>
Sat, 31 Oct 2015 19:55:27 +0000 (12:55 -0700)
committerJim Stichnoth <stichnot@chromium.org>
Sat, 31 Oct 2015 19:55:27 +0000 (12:55 -0700)
commit8686139f458786afd21f59aedbb2debabcdff803
tree099c1f18e419e738cb6ec96383da51dfd870ada8
parent54dbbbaf7c3a791b25e9dd504f0c501875ae4530
Subzero: Force ebp-based frame when an alloca has a large alignment.

If the alloca alignment exceeds the known ABI stack alignment, the lowering sequence adds an "and esp, xxx" instruction.  In this case, the esp adjustment is no longer statically known, so we must force an ebp-based frame.

BUG= none
R=sehr@google.com

Review URL: https://codereview.chromium.org/1426933003 .
src/IceTargetLoweringX86BaseImpl.h
tests_lit/llvm2ice_tests/alloc.ll