[PowerPC] Mark splat immediate instructions as rematerializable
authorVictor Huang <wei.huang@ibm.com>
Fri, 24 Sep 2021 15:46:56 +0000 (10:46 -0500)
committerVictor Huang <wei.huang@ibm.com>
Fri, 24 Sep 2021 17:03:34 +0000 (12:03 -0500)
commit6e1aaf18af6c6b68d314a23068bd912524212fb6
treea718fa898077841647b83d7af31e4f2d5bb4d309
parent1e9afab875696ebf1a8abb5637f04735411ee0b7
[PowerPC] Mark splat immediate instructions as rematerializable

This patch marks splat immediate instructions XXSPLTIW and XXSPLTIDP as
rematerializable to prevent MachineLICM from moving them out of loops.

Reviewed By: lei, amy

Differential revision: https://reviews.llvm.org/D108823
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/constant-pool.ll
llvm/test/CodeGen/PowerPC/p10-spill-crun.ll
llvm/test/CodeGen/PowerPC/p10-splatImm.ll