[PowerPC] Do not emit record-form rotates when record-form andi/andis suffices
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 18 Sep 2018 13:43:16 +0000 (13:43 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Tue, 18 Sep 2018 13:43:16 +0000 (13:43 +0000)
commit87c31a61134f523a09d4cd1cca09e4afe09afa7d
tree263baace5eecee78210d919f6ef06c40979f3a84
parent5e1c0e7610406df5300be63e4b4cd5a05cc0a2a2
[PowerPC] Do not emit record-form rotates when record-form andi/andis suffices

This is a follow-up to the previous patch that eliminated some of the rotates.
With this addition, we will also emit the record-form andis.

This patch increases the number of record-form rotates we eliminate by
more than 70%.

Differential revision: https://reviews.llvm.org/D44897

llvm-svn: 342478
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/test/CodeGen/PowerPC/noPermuteFormasking.ll
llvm/test/CodeGen/PowerPC/tail-dup-break-cfg.ll
llvm/test/CodeGen/PowerPC/tail-dup-layout.ll