public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7)
@ 2007-11-16 19:08 tbm at cyrius dot com
2007-11-16 19:08 ` [Bug tree-optimization/34123] " tbm at cyrius dot com
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2007-11-16 19:08 UTC (permalink / raw)
To: gcc-bugs
With current trunk:
(sid)tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O -ftree-loop-linear
md2.c
md2.c: In function 'MD2Transform':
md2.c:6: error: definition in block 11 does not dominate use in block 7
for SSA_NAME: t_20 in statement:
t_10 = PHI <t_20(7), 0(2)>
PHI argument
t_20
for PHI node
t_10 = PHI <t_20(7), 0(2)>
md2.c:6: internal compiler error: verify_ssa failed
Please submit a full bug report,
I originally thought this was the same as PR31037 and didn't file a PR
but the other testcases work now while this one still fails.
--
Summary: [4.3 Regression] verify_ssa failed (definition in block
11 does not dominate use in block 7)
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tbm at cyrius dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7)
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
@ 2007-11-16 19:08 ` tbm at cyrius dot com
2007-11-16 19:15 ` tbm at cyrius dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2007-11-16 19:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tbm at cyrius dot com 2007-11-16 19:08 -------
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
static unsigned char sbox[] = {
};
void MD2Transform (unsigned char state[16])
{
unsigned char t = 0;
int i, j;
for (i = 0; i < 16; i++)
{
for (j = 0; j < 2; j++)
t = (state[j] ^= sbox[t]);
t += i;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7)
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
2007-11-16 19:08 ` [Bug tree-optimization/34123] " tbm at cyrius dot com
@ 2007-11-16 19:15 ` tbm at cyrius dot com
2007-11-17 12:37 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: tbm at cyrius dot com @ 2007-11-16 19:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tbm at cyrius dot com 2007-11-16 19:14 -------
This was introduced between 20070422 and 20070515.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7)
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
2007-11-16 19:08 ` [Bug tree-optimization/34123] " tbm at cyrius dot com
2007-11-16 19:15 ` tbm at cyrius dot com
@ 2007-11-17 12:37 ` rguenth at gcc dot gnu dot org
2007-11-19 3:45 ` [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-17 12:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2007-11-17 12:37 -------
Confirmed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |spop at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-11-17 12:37:41
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
` (2 preceding siblings ...)
2007-11-17 12:37 ` rguenth at gcc dot gnu dot org
@ 2007-11-19 3:45 ` pinskia at gcc dot gnu dot org
2007-11-20 10:59 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-11-19 3:45 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
Summary|[4.3 Regression] verify_ssa |[4.3 Regression] verify_ssa
|failed (definition in block |failed with -ftree-loop-
|11 does not dominate use in |linear
|block 7) |
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
` (3 preceding siblings ...)
2007-11-19 3:45 ` [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear pinskia at gcc dot gnu dot org
@ 2007-11-20 10:59 ` jakub at gcc dot gnu dot org
2007-11-27 22:00 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-20 10:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2007-11-20 10:59 -------
The testcase is wrong, static unsigned char sbox[] = {}; means zero sized
array.
But using sbox[256] makes the testcase valid and the problem is still there.
This looks like a bug in can_convert_to_perfect_nest, this loop (at least
unless
earlier passes don't realize that sbox[i] == 0 for any i) can't be converted
into a perfect nest.
The basic block which is after the inner loop is:
<bb 5>:
# t_30 = PHI <t_16(4)>
D.1558_19 = (unsigned char) i_39;
t_20 = t_30 + D.1558_19;
i_21 = i_39 + 1;
if (i_21 <= 15)
goto <bb 6>;
else
goto <bb 8>;
<bb 6>:
<bb 7>:
# i_39 = PHI <0(2), i_21(6)>
# SMT.4_10 = PHI <SMT.4_26(D)(2), SMT.4_28(6)>
# t_29 = PHI <0(2), t_20(6)>
goto <bb 4>;
can_convert_to_perfect_nest walks the statements of these bbs and is satisfied
with all of them, the first two stmts in bb5 are satisfied by:
2234 tree step = evolution_part_in_loop_num (scev,
loop->num);
2235 if (step && step != chrec_dont_know
2236 && TREE_CODE (step) == INTEGER_CST)
2237 continue;
- step is for both integer_one_node, the third stmt is of course correctly a
stmt_is_bumper_for_loop and the last one is exit_condition. But nothing scans
the PHIs which are relevant here. # t_30 = PHI <t_16(4)> in bb5 sets t_30 to
t_16, which is computed by inner loop. And # t_29 = PHI <0(2), t_20(6)>
in bb7 sets t_29 used in the inner loop to t_20 set in bb5 (i.e. in the bb
which prevents perfect nest). Should the PHIs be walked similarly to how
stmts are walked?
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dberlin at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
` (4 preceding siblings ...)
2007-11-20 10:59 ` jakub at gcc dot gnu dot org
@ 2007-11-27 22:00 ` mmitchel at gcc dot gnu dot org
2007-12-15 20:37 ` spop at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-11-27 22:00 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
` (5 preceding siblings ...)
2007-11-27 22:00 ` mmitchel at gcc dot gnu dot org
@ 2007-12-15 20:37 ` spop at gcc dot gnu dot org
2007-12-17 19:16 ` spop at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu dot org @ 2007-12-15 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from spop at gcc dot gnu dot org 2007-12-15 20:37 -------
Subject: Re: [4.3 Regression] verify_ssa failed with -ftree-loop-linear
I have a fix for this one, cleaning up the complex logic in
can_convert_to_perfect_nest.
Sebastian
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
` (6 preceding siblings ...)
2007-12-15 20:37 ` spop at gcc dot gnu dot org
@ 2007-12-17 19:16 ` spop at gcc dot gnu dot org
2007-12-18 19:41 ` spop at gcc dot gnu dot org
2007-12-18 19:42 ` spop at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu dot org @ 2007-12-17 19:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from spop at gcc dot gnu dot org 2007-12-17 19:15 -------
Subject: Re: [4.3 Regression] verify_ssa failed with -ftree-loop-linear
Patch is here:
http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00735.html
test result on amd64-linux is here:
http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00752.html
waiting for approval.
Sebastian
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
` (7 preceding siblings ...)
2007-12-17 19:16 ` spop at gcc dot gnu dot org
@ 2007-12-18 19:41 ` spop at gcc dot gnu dot org
2007-12-18 19:42 ` spop at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu dot org @ 2007-12-18 19:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from spop at gcc dot gnu dot org 2007-12-18 19:40 -------
Subject: Bug 34123
Author: spop
Date: Tue Dec 18 19:40:35 2007
New Revision: 131040
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131040
Log:
2007-12-18 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/34123
* lambda-code.c (can_duplicate_iv): New.
(cannot_convert_modify_to_perfect_nest): New.
(cannot_convert_bb_to_perfect_nest): New.
(can_convert_to_perfect_nest): Split up.
* gcc.dg/tree-ssa/pr34123.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr34123.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/lambda-code.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
` (8 preceding siblings ...)
2007-12-18 19:41 ` spop at gcc dot gnu dot org
@ 2007-12-18 19:42 ` spop at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu dot org @ 2007-12-18 19:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from spop at gcc dot gnu dot org 2007-12-18 19:42 -------
Fixed.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34123
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-12-18 19:42 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-16 19:08 [Bug tree-optimization/34123] New: [4.3 Regression] verify_ssa failed (definition in block 11 does not dominate use in block 7) tbm at cyrius dot com
2007-11-16 19:08 ` [Bug tree-optimization/34123] " tbm at cyrius dot com
2007-11-16 19:15 ` tbm at cyrius dot com
2007-11-17 12:37 ` rguenth at gcc dot gnu dot org
2007-11-19 3:45 ` [Bug tree-optimization/34123] [4.3 Regression] verify_ssa failed with -ftree-loop-linear pinskia at gcc dot gnu dot org
2007-11-20 10:59 ` jakub at gcc dot gnu dot org
2007-11-27 22:00 ` mmitchel at gcc dot gnu dot org
2007-12-15 20:37 ` spop at gcc dot gnu dot org
2007-12-17 19:16 ` spop at gcc dot gnu dot org
2007-12-18 19:41 ` spop at gcc dot gnu dot org
2007-12-18 19:42 ` spop 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).