]> granicus.if.org Git - llvm/commit
[PowerPC] Look through copies for compare elimination
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 3 Jun 2019 19:09:15 +0000 (19:09 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Mon, 3 Jun 2019 19:09:15 +0000 (19:09 +0000)
commitf53ef7256af14ecdeea952ee30c03adcda865c4d
tree7af916f947dea1b1cd5e0ad541e97ff65858d19a
parenta69b8271d528b248e80415df7a65e4b254c86536
[PowerPC] Look through copies for compare elimination

We currently miss the opportunities for optmizing comparisons in the peephole
optimizer if the input is the result of a COPY since we look for record-form
versions of the producing instruction.

This patch simply lets the optimization peek through copies.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362438 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.cpp
test/CodeGen/PowerPC/eliminate-compare-of-copy.ll [new file with mode: 0644]