diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-02-16 10:53:08 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-02-16 10:53:08 +0000 |
commit | e73a0c13a120374db2d874e1b789af300311cd97 (patch) | |
tree | d4b67dbaa9efd4016ead3643bbb3c7e115910505 | |
parent | c3f87eefb8e0a64dac3173a3d92009a317b0ddb0 (diff) | |
download | gcc-e73a0c13a120374db2d874e1b789af300311cd97.tar.gz |
2016-02-16 Richard Biener <rguenther@suse.de>
PR rtl-optimization/69291
* ifcvt.c (noce_try_store_flag_constants): Re-instantiate
noce_operand_ok check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233448 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ifcvt.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b746a4f9263..a00388cafe6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-02-16 Richard Biener <rguenther@suse.de> + + PR rtl-optimization/69291 + * ifcvt.c (noce_try_store_flag_constants): Re-instantiate + noce_operand_ok check. + 2016-02-16 Tom de Vries <tom@codesourcery.com> PR lto/67709 diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 205590938a5..4949965c9dc 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1277,7 +1277,8 @@ noce_try_store_flag_constants (struct noce_if_info *if_info) /* Allow expressions that are not using the result or plain registers where we handle overlap below. */ && (REG_P (XEXP (a, 0)) - || ! reg_overlap_mentioned_p (if_info->x, XEXP (a, 0))) + || (noce_operand_ok (XEXP (a, 0)) + && ! reg_overlap_mentioned_p (if_info->x, XEXP (a, 0)))) && if_info->branch_cost >= 2) { common = XEXP (a, 0); |