public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374
@ 2007-10-22 6:32 tbm at cyrius dot com
2007-10-22 6:35 ` [Bug tree-optimization/33854] " tbm at cyrius dot com
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: tbm at cyrius dot com @ 2007-10-22 6:32 UTC (permalink / raw)
To: gcc-bugs
I see the following ICE with current trunk. I can also reproduce this
problem with trunk from 2007-06-04, but not with 2007-05-15.
(sid)29918:tbm@em64t: ~] /usr/lib/gcc-snapshot/bin/gcc -O1 -ftree-vectorize -c
gretl-describe.c
gretl-describe.c: In function 'uniform_correlation_matrix':
gretl-describe.c:11: internal compiler error: in vectorizable_conversion, at
tree-vect-transform.c:3374
Please submit a full bug report,
with preprocessed source if appropriate.
--
Summary: [4.3 Regression] ICE in vectorizable_conversion, at
tree-vect-transform.c:3374
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=33854
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/33854] [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374
2007-10-22 6:32 [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374 tbm at cyrius dot com
@ 2007-10-22 6:35 ` tbm at cyrius dot com
2007-10-22 6:36 ` tbm at cyrius dot com
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tbm at cyrius dot com @ 2007-10-22 6:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tbm at cyrius dot com 2007-10-22 06:35 -------
Created an attachment (id=14385)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14385&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33854
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/33854] [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374
2007-10-22 6:32 [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374 tbm at cyrius dot com
2007-10-22 6:35 ` [Bug tree-optimization/33854] " tbm at cyrius dot com
@ 2007-10-22 6:36 ` tbm at cyrius dot com
2007-10-22 6:37 ` tbm at cyrius dot com
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tbm at cyrius dot com @ 2007-10-22 6:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from tbm at cyrius dot com 2007-10-22 06:36 -------
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
extern void *malloc (long unsigned int __size);
typedef struct VMatrix_ VMatrix;
struct VMatrix_
{
int dim;
int t2;
};
void uniform_correlation_matrix (VMatrix * v)
{
double *xbar = ((void *) 0);
int m = v->dim;
int i;
xbar = malloc (m * sizeof *xbar);
for (i = 0; i < m; i++)
xbar[i] /= m;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33854
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/33854] [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374
2007-10-22 6:32 [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374 tbm at cyrius dot com
2007-10-22 6:35 ` [Bug tree-optimization/33854] " tbm at cyrius dot com
2007-10-22 6:36 ` tbm at cyrius dot com
@ 2007-10-22 6:37 ` tbm at cyrius dot com
2007-10-22 7:24 ` irar at il dot ibm dot com
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: tbm at cyrius dot com @ 2007-10-22 6:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from tbm at cyrius dot com 2007-10-22 06:37 -------
Breakpoint 1, fancy_abort (file=0xc4e238 "gcc/tree-vect-transform.c",
line=3374, function=0xc4fa60 "vectorizable_conversion")
at gcc/diagnostic.c:659
659 {
(gdb) where
#0 fancy_abort (file=0xc4e238 "gcc/tree-vect-transform.c", line=3374,
function=0xc4fa60 "vectorizable_conversion") at gcc/diagnostic.c:659
#1 0x0000000000aac543 in vectorizable_conversion (stmt=0x2ac82a1f2ab0,
bsi=0x0, vec_stmt=0x0,
slp_node=0x0) at gcc/tree-vect-transform.c:3374
#2 0x0000000000a93ab6 in vect_analyze_operations (loop_vinfo=0xf75e50)
at gcc/tree-vect-analyze.c:484
#3 0x0000000000a9b74b in vect_analyze_loop (loop=<value optimized out>)
at gcc/tree-vect-analyze.c:4341
#4 0x000000000080bcd0 in vectorize_loops () at gcc/tree-vectorizer.c:2501
#5 0x000000000063f247 in execute_one_pass (pass=0xee2d00) at gcc/passes.c:1117
#6 0x000000000063f40c in execute_pass_list (pass=0xee2d00)
at gcc/passes.c:1170
#7 0x000000000063f41e in execute_pass_list (pass=0xee2b20)
at gcc/passes.c:1171
#8 0x000000000063f41e in execute_pass_list (pass=0xee1f20)
at gcc/passes.c:1171
#9 0x0000000000717e0e in tree_rest_of_compilation (fndecl=0x2ac82a1dc900)
at gcc/tree-optimize.c:404
#10 0x000000000089adb2 in cgraph_expand_function (node=0x2ac82a1dca00)
at gcc/cgraphunit.c:1060
#11 0x000000000089c858 in cgraph_optimize () at gcc/cgraphunit.c:1123
#12 0x0000000000414d9e in c_write_global_declarations () at gcc/c-decl.c:8077
#13 0x00000000006bb0b7 in toplev_main (argc=<value optimized out>, argv=<value
optimized out>)
at gcc/toplev.c:1055
#14 0x00002ac829d85b44 in __libc_start_main () from /lib/libc.so.6
#15 0x00000000004043f9 in _start ()
(gdb)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33854
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/33854] [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374
2007-10-22 6:32 [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374 tbm at cyrius dot com
` (2 preceding siblings ...)
2007-10-22 6:37 ` tbm at cyrius dot com
@ 2007-10-22 7:24 ` irar at il dot ibm dot com
2007-10-22 8:57 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: irar at il dot ibm dot com @ 2007-10-22 7:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from irar at il dot ibm dot com 2007-10-22 07:23 -------
I am testing the following patch:
Index: tree-vect-analyze.c
===================================================================
--- tree-vect-analyze.c (revision 129404)
+++ tree-vect-analyze.c (working copy)
@@ -242,7 +242,8 @@ vect_determine_vectorization_factor (loo
operation = GIMPLE_STMT_OPERAND (stmt, 1);
if (TREE_CODE (operation) == NOP_EXPR
|| TREE_CODE (operation) == CONVERT_EXPR
- || TREE_CODE (operation) == WIDEN_MULT_EXPR)
+ || TREE_CODE (operation) == WIDEN_MULT_EXPR
+ || TREE_CODE (operation) == FLOAT_EXPR)
{
tree rhs_type = TREE_TYPE (TREE_OPERAND (operation, 0));
if (TREE_INT_CST_LOW (TYPE_SIZE_UNIT (rhs_type)) <
Ira
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33854
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/33854] [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374
2007-10-22 6:32 [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374 tbm at cyrius dot com
` (3 preceding siblings ...)
2007-10-22 7:24 ` irar at il dot ibm dot com
@ 2007-10-22 8:57 ` pinskia at gcc dot gnu dot org
2007-10-22 12:06 ` irar at gcc dot gnu dot org
2007-10-27 16:15 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-10-22 8:57 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
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33854
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/33854] [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374
2007-10-22 6:32 [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374 tbm at cyrius dot com
` (4 preceding siblings ...)
2007-10-22 8:57 ` pinskia at gcc dot gnu dot org
@ 2007-10-22 12:06 ` irar at gcc dot gnu dot org
2007-10-27 16:15 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: irar at gcc dot gnu dot org @ 2007-10-22 12:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from irar at gcc dot gnu dot org 2007-10-22 12:05 -------
Subject: Bug 33854
Author: irar
Date: Mon Oct 22 12:05:36 2007
New Revision: 129549
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129549
Log:
PR tree-optimization/33854
* tree-vect-analyze.c (vect_determine_vectorization_factor): Add
FLOAT_EXPR to the list of promotion operations.
Added:
trunk/gcc/testsuite/gcc.dg/vect/O1-pr33854.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/vect/vect.exp
trunk/gcc/tree-vect-analyze.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33854
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/33854] [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374
2007-10-22 6:32 [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374 tbm at cyrius dot com
` (5 preceding siblings ...)
2007-10-22 12:06 ` irar at gcc dot gnu dot org
@ 2007-10-27 16:15 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-10-27 16:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2007-10-27 16:15 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33854
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-10-27 16:15 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-22 6:32 [Bug tree-optimization/33854] New: [4.3 Regression] ICE in vectorizable_conversion, at tree-vect-transform.c:3374 tbm at cyrius dot com
2007-10-22 6:35 ` [Bug tree-optimization/33854] " tbm at cyrius dot com
2007-10-22 6:36 ` tbm at cyrius dot com
2007-10-22 6:37 ` tbm at cyrius dot com
2007-10-22 7:24 ` irar at il dot ibm dot com
2007-10-22 8:57 ` pinskia at gcc dot gnu dot org
2007-10-22 12:06 ` irar at gcc dot gnu dot org
2007-10-27 16:15 ` 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).