HomePhabricator

[PowerPC] Look through copies for compare elimination

Authored by nemanjai on Jun 3 2019, 12:09 PM.

Description

[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

llvm-svn: 362438