public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "giuliano.belinassi at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/105437] New: ICE on GIMPLE pass slp when vectorizer is enabled
Date: Fri, 29 Apr 2022 21:19:37 +0000 [thread overview]
Message-ID: <bug-105437-4@http.gcc.gnu.org/bugzilla/> (raw)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105437
Bug ID: 105437
Summary: ICE on GIMPLE pass slp when vectorizer is enabled
Product: gcc
Version: 11.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: giuliano.belinassi at gmail dot com
Target Milestone: ---
Given the following C++ input:
```
struct ControlClass
{
virtual ~ControlClass();
int Width;
int Height;
unsigned IsToRepaint : 1;
};
struct SelectClass : ControlClass
{
SelectClass(void);
};
int Non_Folded_Value();
SelectClass::SelectClass(void)
{
int factor = Non_Folded_Value();
Width = 32 << factor;
Height = 24 << factor;
}
```
saved as bug.cpp, and compiling with:
> g++-11 -O2 -ftree-vectorize -S bug.cpp
results in the following ICE:
```
during GIMPLE pass: ehcleanup
bug.cpp: In constructor ‘SelectClass::SelectClass()’:
bug.cpp:17:1: internal compiler error: in mark_reachable_handlers, at
tree->eh.c:4036
17 | SelectClass::SelectClass(void)
| ^~~~~~~~~~~
0x7f03bd2cd2bc __libc_start_main
???:0
```
This bug is still present on trunk. It happens even without -ftree-vectorize,
but the output is:
```
bug.cpp: In constructor ‘SelectClass::SelectClass()’:
bug.cpp:17:1: error: statement marked for throw in middle of block
17 | SelectClass::SelectClass(void)
| ^~~~~~~~~~~
# .MEM_8 = VDEF <.MEM_7>
_9 = Non_Folded_Value ();
during GIMPLE pass: slp
bug.cpp:17:1: internal compiler error: verify_gimple failed
0x112f364 verify_gimple_in_cfg(function*, bool)
../../gcc/gcc/tree-cfg.cc:5561
0xfd5eae execute_function_todo
../../gcc/gcc/passes.cc:2085
0xfd6932 execute_todo
../../gcc/gcc/passes.cc:2139
```
I tracked this issue back to commit 9e5508c2d006f2d4f8670e6c3fed770ac1c85e64:
"refactor SLP constant insertion and provde entry insert helper", but simple
`git revert` doesn't work as one of the files seems to have been deleted/moved.
GCC-10 and older are unaffected. (tested until gcc 7.5.0)
next reply other threads:[~2022-04-29 21:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-29 21:19 giuliano.belinassi at gmail dot com [this message]
2022-05-02 6:47 ` [Bug tree-optimization/105437] [11/12/13 Regression] " rguenth at gcc dot gnu.org
2022-05-02 8:43 ` [Bug tree-optimization/105437] [11/12/13 Regression] ICE on GIMPLE pass slp when vectorizer is enabled since r11-1801-g9e5508c2d006f2d4 cvs-commit at gcc dot gnu.org
2022-05-02 8:44 ` [Bug tree-optimization/105437] [11/12 " rguenth at gcc dot gnu.org
2022-05-06 9:27 ` cvs-commit at gcc dot gnu.org
2022-06-02 10:56 ` [Bug tree-optimization/105437] [11 " cvs-commit at gcc dot gnu.org
2022-06-02 10:57 ` rguenth at gcc dot gnu.org
2024-03-11 22:24 ` cvs-commit at gcc dot gnu.org
2024-03-11 22:45 ` cvs-commit at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-105437-4@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).