aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-manip.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2010-12-14 15:09:59 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2010-12-14 15:09:59 +0100
commit8236c8eb4f599f95d76aafcdc11720edbce407cf (patch)
treee408f2279c770c233318337d4a252ee4b8fb25c6 /gcc/tree-ssa-loop-manip.c
parent2b503136079b6b526bd438b47ae6c5163942b7d0 (diff)
downloadgcc-8236c8eb4f599f95d76aafcdc11720edbce407cf.zip
gcc-8236c8eb4f599f95d76aafcdc11720edbce407cf.tar.gz
gcc-8236c8eb4f599f95d76aafcdc11720edbce407cf.tar.bz2
re PR tree-optimization/46909 (Logical OR expressions are miscompiled)
PR tree-optimization/46909 * gimple-fold.c (and_var_with_comparison_1): Save partial result even in the is_and case, if both partial results are the same, return it. (or_var_with_comparison_1): Use is_or predicate instead of innercode == TRUTH_OR_EXPR test. Save partial result even in the is_or case, if both partial results are the same, return it. In the !is_or case when both partial results are the same, return the partial result instead of boolean_true_node. * gcc.c-torture/execute/pr46909-1.c: New test. * gcc.c-torture/execute/pr46909-2.c: New test. * gcc.dg/pr46909.c: New test. From-SVN: r167800
Diffstat (limited to 'gcc/tree-ssa-loop-manip.c')
0 files changed, 0 insertions, 0 deletions