]> git.ipfire.org Git - thirdparty/gcc.git/commit
[gcse] PR rtl-optimization/69886: Check target mode in can_assign_to_reg_without_clob...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 24 Feb 2016 13:00:10 +0000 (13:00 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 24 Feb 2016 13:00:10 +0000 (13:00 +0000)
commit0683fd27deb878be38f120cce3acbe4d32132b20
tree8426f9185336f0555756df5729d96189e001db5a
parente53d562a36ead2279b98bc7cde3abe9606b44ee2
[gcse] PR rtl-optimization/69886: Check target mode in can_assign_to_reg_without_clobbers_p

PR rtl-optimization/69886
* gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
argument.  Use it when checking validity of set instructions.
(want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
(compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
callsite.
* rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
* store-motion.c (find_moveable_store): Update
can_assign_to_reg_without_clobbers_p callsite.

* gcc.dg/torture/pr69886.c: New test.

From-SVN: r233662
gcc/ChangeLog
gcc/gcse.c
gcc/rtl.h
gcc/store-motion.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr69886.c [new file with mode: 0644]