summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-12-08 15:56:50 +0000
committerTim Northover <tnorthover@apple.com>2013-12-08 15:56:50 +0000
commita4173715f7dbd87c72dd85ea558530b3240015ce (patch)
treeaa5e4ea2e1622cdaf41fa4817775cbf9e6e8cce8 /clang/lib/CodeGen/CodeGenModule.cpp
parent8f24b178f3f305378abc8597a7ab0d803ff2d5a7 (diff)
downloadbcm5719-llvm-a4173715f7dbd87c72dd85ea558530b3240015ce.tar.gz
bcm5719-llvm-a4173715f7dbd87c72dd85ea558530b3240015ce.zip
ARM: fix folding of stack-adjustment (yet again).
When trying to eliminate an "sub sp, sp, #N" instruction by folding it into an existing push/pop using dummy registers, we need to account for the fact that this might affect precisely how "fp" gets set in the prologue. We were attempting this, but assuming that *whenever* we performed a fold it would make a difference. This is false, for example, in: push {r4, r7, lr} add fp, sp, #4 vpush {d8} sub sp, sp, #8 we can fold the "sub" into the "vpush", forming "vpush {d7, d8}". However, in that case the "add fp" instruction mustn't change, which we were getting wrong before. Should fix PR18160. llvm-svn: 196725
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud