public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/38603]  New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
@ 2008-12-21 22:40 hp at gcc dot gnu dot org
  2008-12-21 22:43 ` [Bug rtl-optimization/38603] " hp at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: hp at gcc dot gnu dot org @ 2008-12-21 22:40 UTC (permalink / raw)
  To: gcc-bugs

Trunk revision 141361 with the attached patch shows this regression compared to
unpatched:
Running /home/hp/combx/combined/gcc/testsuite/gcc.c-torture/execute/execute.exp
...
FAIL: gcc.c-torture/execute/20040709-1.c execution,  -O2

However, the regression is hidden at revisions 142609 and 142857.

At the time, a quick glance at the RTL dumps pointed at LOAD_EXTEND_OP
optimizations performed by combine not being properly handled in IRA,
specifically a sign-extension optimized away by combine as matching the
implicit sign extension of a memory read through LOAD_EXTEND_OP.
IIRC the memory read was not being transformed (back) into an explicit
sign-extension.
(I intend to fill in details here, but this will have to do for today.)


-- 
           Summary: IRA does not accommodate LOAD_EXTEND_OP transformations
                    done by combine
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hp at gcc dot gnu dot org
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: mmix-knuth-mmixware


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


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

* [Bug rtl-optimization/38603] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
@ 2008-12-21 22:43 ` hp at gcc dot gnu dot org
  2008-12-23 11:04 ` hp at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hp at gcc dot gnu dot org @ 2008-12-21 22:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hp at gcc dot gnu dot org  2008-12-21 22:41 -------
Created an attachment (id=16955)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16955&action=view)
MMIX IRA_COVER_CLASSES patch


-- 


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


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

* [Bug rtl-optimization/38603] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
  2008-12-21 22:43 ` [Bug rtl-optimization/38603] " hp at gcc dot gnu dot org
@ 2008-12-23 11:04 ` hp at gcc dot gnu dot org
  2008-12-23 18:42 ` hp at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hp at gcc dot gnu dot org @ 2008-12-23 11:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from hp at gcc dot gnu dot org  2008-12-23 11:03 -------
The bug is still visible at r142016.


-- 


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


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

* [Bug rtl-optimization/38603] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
  2008-12-21 22:43 ` [Bug rtl-optimization/38603] " hp at gcc dot gnu dot org
  2008-12-23 11:04 ` hp at gcc dot gnu dot org
@ 2008-12-23 18:42 ` hp at gcc dot gnu dot org
  2008-12-24  2:46 ` [Bug rtl-optimization/38603] [4.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hp at gcc dot gnu dot org @ 2008-12-23 18:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hp at gcc dot gnu dot org  2008-12-23 18:40 -------
And still visible at r142018...


-- 


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


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

* [Bug rtl-optimization/38603] [4.4 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-12-23 18:42 ` hp at gcc dot gnu dot org
@ 2008-12-24  2:46 ` pinskia at gcc dot gnu dot org
  2008-12-29 23:09 ` rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-24  2:46 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ra
            Summary|IRA does not accommodate    |[4.4 Regression] IRA does
                   |LOAD_EXTEND_OP              |not accommodate
                   |transformations done by     |LOAD_EXTEND_OP
                   |combine                     |transformations done by
                   |                            |combine
   Target Milestone|---                         |4.4.0


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


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

* [Bug rtl-optimization/38603] [4.4 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-12-24  2:46 ` [Bug rtl-optimization/38603] [4.4 Regression] " pinskia at gcc dot gnu dot org
@ 2008-12-29 23:09 ` rguenth at gcc dot gnu dot org
  2008-12-31 10:18 ` hp at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-12-29 23:09 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug rtl-optimization/38603] [4.4 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-12-29 23:09 ` rguenth at gcc dot gnu dot org
@ 2008-12-31 10:18 ` hp at gcc dot gnu dot org
  2009-04-06 18:19 ` [Bug rtl-optimization/38603] [4.4/4.5 " ubizjak at gmail dot com
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: hp at gcc dot gnu dot org @ 2008-12-31 10:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from hp at gcc dot gnu dot org  2008-12-31 10:17 -------
Ditto 142116 and 142117.


-- 


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


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

* [Bug rtl-optimization/38603] [4.4/4.5 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-12-31 10:18 ` hp at gcc dot gnu dot org
@ 2009-04-06 18:19 ` ubizjak at gmail dot com
  2009-04-06 18:21 ` ubizjak at gmail dot com
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ubizjak at gmail dot com @ 2009-04-06 18:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ubizjak at gmail dot com  2009-04-06 18:18 -------
It looks to me that this is a reload bug, independent of IRA. See thread [1]
for analysis of what seems to be the same problem.

[1] http://gcc.gnu.org/ml/gcc/2009-04/msg00033.html


-- 


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


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

* [Bug rtl-optimization/38603] [4.4/4.5 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-04-06 18:19 ` [Bug rtl-optimization/38603] [4.4/4.5 " ubizjak at gmail dot com
@ 2009-04-06 18:21 ` ubizjak at gmail dot com
  2009-04-21 16:00 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: ubizjak at gmail dot com @ 2009-04-06 18:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ubizjak at gmail dot com  2009-04-06 18:20 -------
(In reply to comment #5)
> It looks to me that this is a reload bug, independent of IRA. See thread [1]
> for analysis of what seems to be the same problem.
> 
> [1] http://gcc.gnu.org/ml/gcc/2009-04/msg00033.html

Thread continues at http://gcc.gnu.org/ml/gcc/2009-04/msg00038.html.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ubizjak at gmail dot com


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


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

* [Bug rtl-optimization/38603] [4.4/4.5 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2009-04-06 18:21 ` ubizjak at gmail dot com
@ 2009-04-21 16:00 ` jakub at gcc dot gnu dot org
  2009-07-22 10:34 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-04-21 16:00 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.0                       |4.4.1


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


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

* [Bug rtl-optimization/38603] [4.4/4.5 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2009-04-21 16:00 ` jakub at gcc dot gnu dot org
@ 2009-07-22 10:34 ` jakub at gcc dot gnu dot org
  2009-10-15 12:55 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-22 10:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.1                       |4.4.2


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


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

* [Bug rtl-optimization/38603] [4.4/4.5 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2009-07-22 10:34 ` jakub at gcc dot gnu dot org
@ 2009-10-15 12:55 ` jakub at gcc dot gnu dot org
  2010-01-21 13:18 ` jakub at gcc dot gnu dot org
  2010-04-30  8:59 ` [Bug rtl-optimization/38603] [4.4/4.5/4.6 Regression] reload inheritance mucks up " jakub at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-10-15 12:55 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.2                       |4.4.3


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


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

* [Bug rtl-optimization/38603] [4.4/4.5 Regression] IRA does not accommodate LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2009-10-15 12:55 ` jakub at gcc dot gnu dot org
@ 2010-01-21 13:18 ` jakub at gcc dot gnu dot org
  2010-04-30  8:59 ` [Bug rtl-optimization/38603] [4.4/4.5/4.6 Regression] reload inheritance mucks up " jakub at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-01-21 13:18 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.3                       |4.4.4


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


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

* [Bug rtl-optimization/38603] [4.4/4.5/4.6 Regression] reload inheritance mucks up  LOAD_EXTEND_OP transformations done by combine
  2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2010-01-21 13:18 ` jakub at gcc dot gnu dot org
@ 2010-04-30  8:59 ` jakub at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-04-30  8:59 UTC (permalink / raw)
  To: gcc-bugs



-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.4.4                       |4.4.5


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


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

end of thread, other threads:[~2010-04-30  8:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-21 22:40 [Bug rtl-optimization/38603] New: IRA does not accommodate LOAD_EXTEND_OP transformations done by combine hp at gcc dot gnu dot org
2008-12-21 22:43 ` [Bug rtl-optimization/38603] " hp at gcc dot gnu dot org
2008-12-23 11:04 ` hp at gcc dot gnu dot org
2008-12-23 18:42 ` hp at gcc dot gnu dot org
2008-12-24  2:46 ` [Bug rtl-optimization/38603] [4.4 Regression] " pinskia at gcc dot gnu dot org
2008-12-29 23:09 ` rguenth at gcc dot gnu dot org
2008-12-31 10:18 ` hp at gcc dot gnu dot org
2009-04-06 18:19 ` [Bug rtl-optimization/38603] [4.4/4.5 " ubizjak at gmail dot com
2009-04-06 18:21 ` ubizjak at gmail dot com
2009-04-21 16:00 ` jakub at gcc dot gnu dot org
2009-07-22 10:34 ` jakub at gcc dot gnu dot org
2009-10-15 12:55 ` jakub at gcc dot gnu dot org
2010-01-21 13:18 ` jakub at gcc dot gnu dot org
2010-04-30  8:59 ` [Bug rtl-optimization/38603] [4.4/4.5/4.6 Regression] reload inheritance mucks up " jakub 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).