This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/25485] VRP misses an "if" with TRUTH_AND_EXPR statement that could be optimized away



------- Comment #4 from kazu at gcc dot gnu dot org  2006-01-14 15:42 -------
Subject: Bug 25485

Author: kazu
Date: Sat Jan 14 15:42:11 2006
New Revision: 109704

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109704
Log:
gcc/
        PR tree-optimization/25485
        * tree-vrp.c (extract_range_from_binary_expr): Handle cases
        where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
        is known to be false and true, respectively.

gcc/testsuite/
        PR tree-optimization/25485
        * gcc.dg/tree-ssa/pr25485.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr25485.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25485


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]