OSDN Git Service

[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)
commit8c457a728f6f53e60aa69e7b68264d82737a099d
tree4303501ff7f71f5b8bd5bc296f3ff3f349eafac1
parentc7d97ef0cfc5e7922a5ddf4b6d19d5326afaceea
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342478 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.cpp
test/CodeGen/PowerPC/noPermuteFormasking.ll
test/CodeGen/PowerPC/tail-dup-break-cfg.ll
test/CodeGen/PowerPC/tail-dup-layout.ll