Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [PowerPC] Disable shrink-wrapping when getting PC address through the LR | Nemanja Ivanovic | 2018-02-23 | 1 | -0/+70 |
The instruction sequence used to get the address of the PC into a GPR requires that we clobber the link register. Doing so without having first saved it in the prologue leaves the function unable to return. Currently, this sequence is emitted into the entry block. To ensure the prologue is inserted before this sequence, disable shrink-wrapping. This fixes PR33547. Differential Revision: https://reviews.llvm.org/D43677 llvm-svn: 325972 |