[PowerPC] store the LR before stack update for big offsets.
authorChen Zheng <czhengsz@cn.ibm.com>
Tue, 22 Nov 2022 07:23:10 +0000 (07:23 +0000)
committerChen Zheng <czhengsz@cn.ibm.com>
Tue, 22 Nov 2022 07:25:28 +0000 (07:25 +0000)
commit375323fb850a0e23df666641f93231fc28ce40ca
tree455923e8886743a477257d18b55712636a614a72
parent2aa8a1a3bd1c4d58841d2edc1d733f07c11305a5
[PowerPC] store the LR before stack update for big offsets.

For case that LROffset + FrameSize can not be encoded to the LR
store instruction, we have to store the LR before the stack update.
llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
llvm/test/CodeGen/PowerPC/mflr-store.mir