summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-01-05 02:32:06 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-01-05 02:32:06 +0000
commit869be0a4a6ba22cdedcefad13bcad8bbcb39e273 (patch)
treec2227269613855bbc673005d5d5b856faf6ee3c0 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parent2c82ee60c32f5532e099d70827b661d0785997e8 (diff)
downloadbcm5719-llvm-869be0a4a6ba22cdedcefad13bcad8bbcb39e273.tar.gz
bcm5719-llvm-869be0a4a6ba22cdedcefad13bcad8bbcb39e273.zip
Revert "[X86] Use push-pop for materializing small constants under 'minsize'"
The red zone consists of 128 bytes beyond the stack pointer so that the allocation of objects in leaf functions doesn't require decrementing rsp. In r255656, we introduced an optimization that would cheaply materialize certain constants via push/pop. Push decrements the stack pointer and stores it's result at what is now the top of the stack. However, this means that using push/pop would encroach on the red zone. PR26023 gives an example where this corrupts an object in the red zone. llvm-svn: 256808
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud