diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-06-25 19:20:15 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-06-25 19:20:15 +0200 |
commit | 2a65e70bcfb000b229a2cbf54b06956108443598 (patch) | |
tree | e8e53d72f842bb86f62249822f10a715435f81e8 /gcc/predict.c | |
parent | 7805417a5d2a9a79a3858b82d60169178f59c6f1 (diff) | |
download | gcc-2a65e70bcfb000b229a2cbf54b06956108443598.zip gcc-2a65e70bcfb000b229a2cbf54b06956108443598.tar.gz gcc-2a65e70bcfb000b229a2cbf54b06956108443598.tar.bz2 |
re PR tree-optimization/71631 (Wrong constant folding)
PR tree-optimization/71631
* tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
to rewrite_expr_tree even if negate_result, move new_lhs var
declaration and initialization earlier, for powi_result set afterwards
new_lhs to lhs. For negate_result, use new_lhs instead of tmp
if new_lhs != lhs, and don't shadow gsi var.
* gcc.c-torture/execute/pr71631.c: New test.
From-SVN: r237782
Diffstat (limited to 'gcc/predict.c')
0 files changed, 0 insertions, 0 deletions