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.
This will have some problem with parameter/return COPY: We will get HW reg instead, wrong MI, then mess up the search scope in line 1802 later.
See test/CodeGen/PowerPC/optcmp.ll for an example.