If a virtual register is copied and another copy was already
seen, replace with the previous copy.
This pattern shows up from various operand restrictions
AMDGPU has which require inserting copies depending
on the register class of the operands.
arsenm on Sep 23 2015, 7:00 PM.Authored by
I’m fine with the patch modulo few nitpicks.
That being said, we can reconsider when we see motivating examples.