public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/21088] New: VRP passes fold the type of operands of a comparison
@ 2005-04-18 14:59 kazu at cs dot umass dot edu
  2005-04-18 19:12 ` [Bug tree-optimization/21088] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-18 14:59 UTC (permalink / raw)
  To: gcc-bugs

Around tree-vrp.c:420, we have

      t = fold (build2 (LT_EXPR, TREE_TYPE (val1), val1, val2));
      if (t == boolean_true_node)
	return -1;

Since VAL1 is known to be of a pointer type, the result of fold will never
be equal to boolean_true_node, which is of the boolean type.

-- 
           Summary: VRP passes fold the type of operands of a comparison
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: kazu at cs dot umass dot edu
        ReportedBy: kazu at cs dot umass dot edu
                CC: dnovillo at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/21088] VRP passes fold the type of operands of a comparison
  2005-04-18 14:59 [Bug tree-optimization/21088] New: VRP passes fold the type of operands of a comparison kazu at cs dot umass dot edu
@ 2005-04-18 19:12 ` pinskia at gcc dot gnu dot org
  2005-04-23  2:02 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-18 19:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-18 19:12 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |missed-optimization
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-18 19:12:13
               date|                            |


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/21088] VRP passes fold the type of operands of a comparison
  2005-04-18 14:59 [Bug tree-optimization/21088] New: VRP passes fold the type of operands of a comparison kazu at cs dot umass dot edu
  2005-04-18 19:12 ` [Bug tree-optimization/21088] " pinskia at gcc dot gnu dot org
@ 2005-04-23  2:02 ` cvs-commit at gcc dot gnu dot org
  2005-04-23  2:03 ` kazu at cs dot umass dot edu
  2005-04-23  3:39 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-23  2:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-23 02:02 -------
Subject: Bug 21088

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	kazu@gcc.gnu.org	2005-04-23 02:01:59

Modified files:
	gcc            : ChangeLog fold-const.c tree-vrp.c tree.h 

Log message:
	PR tree-optimization/21088
	* fold-const.c (fold_unary, fold_binary, fold_ternary):
	Export.
	* tree-vrp.c (compare_values): Use fold_binary to compare
	pointers.  Use boolean_type_node as the type of a comparison
	expression being folded.
	* tree.h: Add prototypes for fold_unary, fold_binary,
	fold_ternary.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8412&r2=2.8413
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fold-const.c.diff?cvsroot=gcc&r1=1.567&r2=1.568
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-vrp.c.diff?cvsroot=gcc&r1=2.11&r2=2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.718&r2=1.719



-- 


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/21088] VRP passes fold the type of operands of a comparison
  2005-04-18 14:59 [Bug tree-optimization/21088] New: VRP passes fold the type of operands of a comparison kazu at cs dot umass dot edu
  2005-04-18 19:12 ` [Bug tree-optimization/21088] " pinskia at gcc dot gnu dot org
  2005-04-23  2:02 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-23  2:03 ` kazu at cs dot umass dot edu
  2005-04-23  3:39 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: kazu at cs dot umass dot edu @ 2005-04-23  2:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From kazu at cs dot umass dot edu  2005-04-23 02:03 -------
Just checked in a patch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/21088] VRP passes fold the type of operands of a comparison
  2005-04-18 14:59 [Bug tree-optimization/21088] New: VRP passes fold the type of operands of a comparison kazu at cs dot umass dot edu
                   ` (2 preceding siblings ...)
  2005-04-23  2:03 ` kazu at cs dot umass dot edu
@ 2005-04-23  3:39 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-23  3:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-23  3:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 14:59 [Bug tree-optimization/21088] New: VRP passes fold the type of operands of a comparison kazu at cs dot umass dot edu
2005-04-18 19:12 ` [Bug tree-optimization/21088] " pinskia at gcc dot gnu dot org
2005-04-23  2:02 ` cvs-commit at gcc dot gnu dot org
2005-04-23  2:03 ` kazu at cs dot umass dot edu
2005-04-23  3:39 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).