Bug 22122 - [4.1 Regression] -ftree-vectorize ICE get_loop_body, at cfgloop.c:819
Summary: [4.1 Regression] -ftree-vectorize ICE get_loop_body, at cfgloop.c:819
Status: RESOLVED DUPLICATE of bug 23048
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-06-19 16:51 UTC by marcus
Modified: 2005-07-31 03:48 UTC (History)
4 users (show)

See Also:
Host:
Target: i?86-*-*, x86_64-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-06-19 16:57:37


Attachments
thread.i (92 bytes, text/plain)
2005-06-19 16:52 UTC, marcus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marcus 2005-06-19 16:51:30 UTC
-ftree-vectorize ICEs in  get_loop_body, at cfgloop.c:819 
with the attached testcase. 
 
 LANG=C /home/marcus/projects/gcc/BIN/bin/gcc -c   -ftree-vectorize thread.i 
-O2 
thread.i: In function 'f': 
thread.i:2: internal compiler error: in get_loop_body, at cfgloop.c:819 
 
gcc version 4.1.0 20050619 (experimental)
Comment 1 marcus 2005-06-19 16:52:06 UTC
Created attachment 9114 [details]
thread.i

gcc -O2 -ftree-vectorize thread.i
Comment 2 Andrew Pinski 2005-06-19 16:57:37 UTC
Confirmed, I think this is just another case of not clearing bb->aux.
Comment 3 Andrew Pinski 2005-06-19 17:01:35 UTC
Yes this is just not clearing bb->aux so this is a dup of bug 22100.

*** This bug has been marked as a duplicate of 22100 ***
Comment 4 marcus 2005-06-20 21:24:13 UTC
this still happens for me even after: 
2005-06-20  Jan Hubicka  <jh@suse.cz> 
 
        * cfgloop.h (DLTHE_RECORD_COPY_NUMBER): New flag. 
        * cfgloopmanip.c (duplicate_loop_to_header_edge): Set aux flags only 
        when asked for. 
... 
 
 
Comment 5 Andrew Pinski 2005-06-21 12:51:47 UTC
Hmm, reconfirmed, then.
Comment 6 Jan Hubicka 2005-06-22 11:12:36 UTC
Subject: Re:  [4.1 Regression] -ftree-vectorize ICE get_loop_body, at cfgloop.c:819

> 
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-21 12:51 -------
> Hmm, reconfirmed, then.
Strange, the testcase was passing for me when I was testing it on not
100% final version of patch.  I will re-check it today.

Honza
> 
> -- 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|REOPENED                    |NEW
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22122
> 
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
Comment 7 marcus 2005-06-22 17:26:37 UTC
gcc-Version 4.1.0 20050622 (experimental) 
 
../BIN/bin/gcc -ftree-vectorize -O2 -c ~/thread.i  
/home/marcus/thread.i: In function 'f': 
/home/marcus/thread.i:2: internal compiler error: in get_loop_body, at 
cfgloop.c:819 
Please submit a full bug report, 
 
-O2 is enough for me 
Comment 8 Andrew Pinski 2005-07-31 03:47:55 UTC
-fno-tree-copy-prop "fixes" the problem.
Comment 9 Andrew Pinski 2005-07-31 03:48:28 UTC
This is a dup of bug 23048.

*** This bug has been marked as a duplicate of 23048 ***