[PowerPC] [MLICM] Enable hoisting of caller preserved registers on AIX
authorShimin Cui <scui@ca.ibm.com>
Wed, 31 Mar 2021 16:36:49 +0000 (12:36 -0400)
committerShimin Cui <scui@ca.ibm.com>
Wed, 31 Mar 2021 16:46:25 +0000 (12:46 -0400)
commit00c0c8c87d300406d8121bcdf02ae75b9b1af9c3
tree28e2a8ecf5ae8cf654be7f9b47b7102549232c47
parent50b8634a99b6f2f36a3fdbea7aa7892c9b881d64
[PowerPC] [MLICM] Enable hoisting of caller preserved registers on AIX

On ppc64 linux , MachineLICM will hoist caller preserved registers, including TOC loads of the global variable address, out of loops. This is to enable this on AIX for both ppc64 and ppc32.

Differential Revision: https://reviews.llvm.org/D99076
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
llvm/test/CodeGen/PowerPC/licm-tocReg.ll