Jonas Paulsson
160287755d
Reapply "[SystemZFrameLowering] Don't overrwrite R1D (backchain) when probing."
...
Fixed to properly compute the live-in lists of new blocks.
Review: Ulrich Weigand
Differential Revision: https://reviews.llvm.org/D92803
2020-12-11 18:25:47 -06:00
Jonas Paulsson
c55f1c4d7e
Revert "[SystemZFrameLowering] Don't overrwrite R1D (backchain) when probing."
...
Temporarily reverted.
This reverts commit ea475c77ff9eab1de7d44684c8fb453b39f70081.
2020-12-10 18:05:51 -06:00
Jonas Paulsson
3646ae19a8
[SystemZFrameLowering] Don't overrwrite R1D (backchain) when probing.
...
The loop-based probing done for stack clash protection altered R1D which
corrupted the backchain value to be stored after the probing was done.
By using R0D instead for the loop exit value, R1D is not modified.
Review: Ulrich Weigand.
Differential Revision: https://reviews.llvm.org/D92803
2020-12-10 15:06:18 -06:00
Jonas Paulsson
27037aea90
[SystemZ] Implement -fstack-clash-protection
...
Probing of allocated stack space is now done when this option is passed. The
purpose is to protect against the stack clash attack (see
https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt ).
Review: Ulrich Weigand
Differential Revision: https://reviews.llvm.org/D78717
2020-06-06 18:38:36 +02:00