[PowerPC] support register pressure reduction in machine combiner.
authorChen Zheng <czhengsz@cn.ibm.com>
Mon, 18 Jan 2021 04:53:33 +0000 (23:53 -0500)
committerChen Zheng <czhengsz@cn.ibm.com>
Mon, 25 Jan 2021 02:28:21 +0000 (21:28 -0500)
commit0ed4cf4bf3b65e54d3ccb9a3bf1505efbd1b864c
treef50c800248a0a4f5694eb628a803bf81b8e02548
parentf4537935dcdbf390c863591cf556e76c3abab9c1
[PowerPC] support register pressure reduction in machine combiner.

Reassociating some patterns to generate more fma instructions to
reduce register pressure.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D92071
llvm/include/llvm/CodeGen/MachineCombinerPattern.h
llvm/lib/CodeGen/MachineCombiner.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h
llvm/test/CodeGen/PowerPC/register-pressure-reduction.ll [new file with mode: 0644]