aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2016-02-22 21:57:17 +0000
committerDerek Schuff <dschuff@google.com>2016-02-22 21:57:17 +0000
commit27e3b8a6e3a5c75a0e23d18a7bb3f32bce851db8 (patch)
tree7c1d816cf9179850ab0f110b01df51867c61b57e /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentfb31d580ea5e887159a1bc684a357a7b2e27e123 (diff)
downloadllvm-27e3b8a6e3a5c75a0e23d18a7bb3f32bce851db8.zip
llvm-27e3b8a6e3a5c75a0e23d18a7bb3f32bce851db8.tar.gz
llvm-27e3b8a6e3a5c75a0e23d18a7bb3f32bce851db8.tar.bz2
[WebAssembly] Fix writeback of stack pointer with dynamic alloca
Previously the stack pointer was only written back to memory in the prolog. But this is wrong for dynamic allocas, for which target-independent codegen handles SP updates after the prolog (and possibly even in another BB). Instead update the SP global in ADJCALLSTACKDOWN which is generated after the SP update sequence. This will have further refinements when we add red zone support. llvm-svn: 261579
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions