Remove no-op register to register copies in CSE just like we remove no-op memory...
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 12 Mar 2020 22:09:27 +0000 (16:09 -0600)
committerJeff Law <law@redhat.com>
Thu, 12 Mar 2020 22:10:33 +0000 (16:10 -0600)
commit4aded535ea6ad7c362ab62d99af70e53c186d582
tree00d027a1ef575643407aa9f80c24f6e6a6e275ec
parentdaf2852b883762d921361462dad1f99320faca2a
Remove no-op register to register copies in CSE just like we remove no-op memory to memory copies.

        PR rtl-optimization/90275
        * cse.c (cse_insn): Delete no-op register moves too.

        PR rtl-optimization/90275
        * gcc.c-torture/compile/pr90275.c: New test.
gcc/ChangeLog
gcc/cse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr90275.c [new file with mode: 0644]