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/53465] [4.7 regression] wrong code with -O1 -ftree-vrp


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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-24 11:51:15 UTC ---
Author: jakub
Date: Thu May 24 11:51:09 2012
New Revision: 187827

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187827
Log:
    PR tree-optimization/53465
    * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
    vr0 into *vr, then vrp_meet that.
    (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
    have any equivalences.
    (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
    first time.

    * gcc.c-torture/execute/pr53465.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr53465.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c


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