diff options
author | Richard Biener <rguenther@suse.de> | 2016-02-16 10:53:08 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-02-16 10:53:08 +0000 |
commit | d5b1a52eec591a9a995e47880c87333b42ebb870 (patch) | |
tree | d4b67dbaa9efd4016ead3643bbb3c7e115910505 /gcc/ifcvt.c | |
parent | 2175df996bb6424d0b08bac0ece3e947d4c3d3b4 (diff) | |
download | gcc-d5b1a52eec591a9a995e47880c87333b42ebb870.zip gcc-d5b1a52eec591a9a995e47880c87333b42ebb870.tar.gz gcc-d5b1a52eec591a9a995e47880c87333b42ebb870.tar.bz2 |
re PR rtl-optimization/69291 (wrong code at -O1 for ruby-2.3.0/regcomp.c:985:compile_length_quantifier_node())
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.
From-SVN: r233448
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 2055909..4949965 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); |