summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TailDuplication.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2016-04-04 21:02:46 +0000
committerHans Wennborg <hans@hanshq.net>2016-04-04 21:02:46 +0000
commita47a692341bd108ad4188b6a868152d8d0f99b64 (patch)
treefd290194bfb66b4c5fa6e9b17bc3fa03d3299c50 /llvm/lib/CodeGen/TailDuplication.cpp
parent8cde42c40084bc62c3fbffbc2ed8b118813a008c (diff)
downloadbcm5719-llvm-a47a692341bd108ad4188b6a868152d8d0f99b64.tar.gz
bcm5719-llvm-a47a692341bd108ad4188b6a868152d8d0f99b64.zip
Re-commit r265039 "[X86] Merge adjacent stack adjustments in eliminateCallFramePseudoInstr (PR27140)"
The original commit miscompiled things on 32-bit Windows, e.g. a Clang boostrap. It turns out that mergeSPUpdates() was a bit too generous in what it interpreted as a stack adjustment, causing the following code: addl $12, %esp leal -4(%ebp), %esp To be "optimized" into simply: addl $8, %esp This commit tightens up mergeSPUpdates() and includes a new test (test14 in movtopush.ll) for this situation. llvm-svn: 265345
Diffstat (limited to 'llvm/lib/CodeGen/TailDuplication.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud