From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30651 invoked by alias); 24 Apr 2005 18:07:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30587 invoked by alias); 24 Apr 2005 18:07:06 -0000 Date: Sun, 24 Apr 2005 18:07:00 -0000 Message-ID: <20050424180706.30586.qmail@sourceware.org> From: "dnovillo at redhat dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20021122094603.8681.rf13@inf.tu-dresden.de> References: <20021122094603.8681.rf13@inf.tu-dresden.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/8681] Generates unneeded test X-Bugzilla-Reason: CC X-SW-Source: 2005-04/txt/msg03434.txt.bz2 List-Id: ------- Additional Comments From dnovillo at redhat dot com 2005-04-24 18:07 ------- Subject: Re: Generates unneeded test On Sun, Apr 24, 2005 at 05:56:50PM -0000, pinskia at gcc dot gnu dot org wrote: > > i_15: [1, 2147483647] > i_16: [0, 2147483647] > i_20: VARYING > > # i_20 = PHI ; > > > Looks like VRP does not understand PHI functions or it just gives up too often. > i_15 and 0 have a non-empty intersection and so vrp_meet returns VARYING. VRP does not handle multiple ranges, but in this case it should not be hard to merge the two adjacent ranges [1, +INF] and [0, 0]. What is the type of 'i'? If it's unsigned, then we would be wasting our time. Diego. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8681