[PowerPC] prepare more loop load/store instructions
authorChen Zheng <czhengsz@cn.ibm.com>
Tue, 14 Sep 2021 04:26:33 +0000 (04:26 +0000)
committerChen Zheng <czhengsz@cn.ibm.com>
Tue, 14 Sep 2021 05:00:48 +0000 (05:00 +0000)
commit946e69d253f23d62ed56f8f969414bb07a655e4e
treef510eb7a2271d53307ca6af4344396209ee7ff2e
parentc305513cc2253724e60ec5c64eb059ee400b73b7
[PowerPC] prepare more loop load/store instructions

PPCLoopInstrFormPrep pass now can prepare for load store instructions
in a loop whose increment is not a constant integer.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D105872
llvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
llvm/test/CodeGen/PowerPC/loop-instr-prep-non-const-increasement.ll
llvm/test/CodeGen/PowerPC/lsr-profitable-chain.ll