public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/43966]  New: redundant checks not removed
@ 2010-05-03  6:18 hartmut dot schirmer at arcormail dot de
  2010-05-03  6:19 ` [Bug middle-end/43966] " hartmut dot schirmer at arcormail dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hartmut dot schirmer at arcormail dot de @ 2010-05-03  6:18 UTC (permalink / raw)
  To: gcc-bugs

On attached test case GCC keeps the index range checks in
Vector::getValue although they're always true due to loop conditions

 # GNU C++ (GCC) version 4.5.0 (mingw32)
 # options passed:  -fpreprocessed yy5.ii -march=atom -mtune=atom -O2 -Wall


-- 
           Summary: redundant checks not removed
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hartmut dot schirmer at arcormail dot de
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32


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


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

* [Bug middle-end/43966] redundant checks not removed
  2010-05-03  6:18 [Bug middle-end/43966] New: redundant checks not removed hartmut dot schirmer at arcormail dot de
@ 2010-05-03  6:19 ` hartmut dot schirmer at arcormail dot de
  2010-05-03  6:19 ` hartmut dot schirmer at arcormail dot de
  2010-05-03  9:59 ` [Bug tree-optimization/43966] redundant predicated checks not removed by VRP or jump-threading rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: hartmut dot schirmer at arcormail dot de @ 2010-05-03  6:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hartmut dot schirmer at arcormail dot de  2010-05-03 06:19 -------
Created an attachment (id=20538)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20538&action=view)
Test case

foo() uses a get method without checks and is ok, checks not optimized away in
bar()


-- 


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


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

* [Bug middle-end/43966] redundant checks not removed
  2010-05-03  6:18 [Bug middle-end/43966] New: redundant checks not removed hartmut dot schirmer at arcormail dot de
  2010-05-03  6:19 ` [Bug middle-end/43966] " hartmut dot schirmer at arcormail dot de
@ 2010-05-03  6:19 ` hartmut dot schirmer at arcormail dot de
  2010-05-03  9:59 ` [Bug tree-optimization/43966] redundant predicated checks not removed by VRP or jump-threading rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: hartmut dot schirmer at arcormail dot de @ 2010-05-03  6:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hartmut dot schirmer at arcormail dot de  2010-05-03 06:19 -------
Created an attachment (id=20539)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20539&action=view)
Assembler listing


-- 


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


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

* [Bug tree-optimization/43966] redundant predicated checks not removed by VRP or jump-threading
  2010-05-03  6:18 [Bug middle-end/43966] New: redundant checks not removed hartmut dot schirmer at arcormail dot de
  2010-05-03  6:19 ` [Bug middle-end/43966] " hartmut dot schirmer at arcormail dot de
  2010-05-03  6:19 ` hartmut dot schirmer at arcormail dot de
@ 2010-05-03  9:59 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-03  9:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2010-05-03 09:59 -------
Well, this is another case where the predication by if (mData) makes this
hard to optimize.  Not impossible, but hard.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |tree-optimization
     Ever Confirmed|0                           |1
           Keywords|                            |missed-optimization
   Last reconfirmed|0000-00-00 00:00:00         |2010-05-03 09:59:47
               date|                            |
            Summary|redundant checks not removed|redundant predicated checks
                   |                            |not removed by VRP or jump-
                   |                            |threading


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


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

end of thread, other threads:[~2010-05-03  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-03  6:18 [Bug middle-end/43966] New: redundant checks not removed hartmut dot schirmer at arcormail dot de
2010-05-03  6:19 ` [Bug middle-end/43966] " hartmut dot schirmer at arcormail dot de
2010-05-03  6:19 ` hartmut dot schirmer at arcormail dot de
2010-05-03  9:59 ` [Bug tree-optimization/43966] redundant predicated checks not removed by VRP or jump-threading rguenth 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).