On 11/13/18 6:06 PM, Eric Botcazou wrote: >> PR rtl-optimization/87507 >> * lower-subreg.c (operand_for_simple_move_operator): New function. >> (simple_move): Strip simple operators. >> (find_pseudo_copy): Likewise. >> (resolve_operand_for_simple_move_operator): New function. >> (resolve_simple_move): Strip simple operators and swap operands. >> >> gcc/testsuite/ >> PR rtl-optimization/87507 >> * gcc.target/powerpc/pr87507.c: New test. >> * gcc.target/powerpc/pr68805.c: Update expected results. > > OK with the s/simple/swap/ change suggested by Richard.
Ok, I used operand_for_swap_move_operator like Richard suggested and also did a similar change for resolve_operand_for_swap_move_operator to keep things consistent. Now committed. Thanks! Peter