diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2016-02-24 13:00:10 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2016-02-24 13:00:10 +0000 |
commit | 0683fd27deb878be38f120cce3acbe4d32132b20 (patch) | |
tree | 8426f9185336f0555756df5729d96189e001db5a /gcc/rtl.h | |
parent | e53d562a36ead2279b98bc7cde3abe9606b44ee2 (diff) | |
download | gcc-0683fd27deb878be38f120cce3acbe4d32132b20.zip gcc-0683fd27deb878be38f120cce3acbe4d32132b20.tar.gz gcc-0683fd27deb878be38f120cce3acbe4d32132b20.tar.bz2 |
[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
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3592,7 +3592,7 @@ extern void init_lower_subreg (void); /* In gcse.c */ extern bool can_copy_p (machine_mode); -extern bool can_assign_to_reg_without_clobbers_p (rtx); +extern bool can_assign_to_reg_without_clobbers_p (rtx, machine_mode); extern rtx fis_get_condition (rtx_insn *); /* In ira.c */ |