]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
[RTL-ifcvt] PR rtl-optimization/68841: Make sure one basic block doesn't clobber...
authorKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 11 Jan 2016 12:13:50 +0000 (12:13 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 11 Jan 2016 12:13:50 +0000 (12:13 +0000)
commit5baf45323b70abe259bffc89425e9f0155a1a7a3
tree590458ee63e277d05bcf8da716d1961107023f90
parent1c5211b13cb66b65f92a8289d221e2c3f4a3dfe2
[RTL-ifcvt] PR rtl-optimization/68841: Make sure one basic block doesn't clobber CC reg usage of the other

        PR rtl-optimization/68841
        * ifcvt.c (struct noce_if_info): Add orig_x field.
        (bbs_ok_for_cmove_arith): Add to_rename parameter.
        Don't record conflicts on to_rename if it's present.
        Allow memory destinations in sets.
        (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
        blocks, passing orig_x to the checks.
        (noce_process_if_block): Set if_info->orig_x appropriately.

        * gcc.dg/pr68841.c: New test.
        * gcc.c-torture/execute/pr68841.c: New test.

From-SVN: r232223
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr68841.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr68841.c [new file with mode: 0644]