public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529
@ 2023-11-19 12:13 hubicka at gcc dot gnu.org
2023-11-19 19:29 ` [Bug tree-optimization/112618] [13/14 Regression] " pinskia at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: hubicka at gcc dot gnu.org @ 2023-11-19 12:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112618
Bug ID: 112618
Summary: internal compiler error: in expand_MASK_CALL, at
internal-fn.cc:4529
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: hubicka at gcc dot gnu.org
Target Milestone: ---
jh@ryzen4:~/gcc/build4/stage1-gcc> cat b.c
/* PR tree-optimization/106433 */
int m, *p;
__attribute__ ((simd)) int
bar (int x)
{
if (x)
{
if (m < 1)
for (m = 0; m < 1; ++m)
++x;
p = &x;
for (;;)
++m;
}
return 0;
}
__attribute__ ((simd)) int
foo (int x)
{
bar (x);
return 0;
}
jh@ryzen4:~/gcc/build4/stage1-gcc> ./xgcc -B ./ -O2 b.c -fno-tree-vrp
during RTL pass: expand
b.c: In function ‘foo.simdclone.3’:
b.c:23:2: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:5013
23 | bar (x);
| ^~~~~~~
0x12db307 expand_MASK_CALL(internal_fn, gcall*)
../../gcc/internal-fn.cc:5013
0x12daa47 expand_internal_call(internal_fn, gcall*)
../../gcc/internal-fn.cc:4920
0x12daa72 expand_internal_call(gcall*)
../../gcc/internal-fn.cc:4928
0xf7637e expand_call_stmt
../../gcc/cfgexpand.cc:2737
0xf7a5a8 expand_gimple_stmt_1
../../gcc/cfgexpand.cc:3880
0xf7ac2c expand_gimple_stmt
../../gcc/cfgexpand.cc:4044
0xf82d6f expand_gimple_basic_block
../../gcc/cfgexpand.cc:6100
0xf85322 execute
../../gcc/cfgexpand.cc:6835
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112618] [13/14 Regression] internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529
2023-11-19 12:13 [Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529 hubicka at gcc dot gnu.org
@ 2023-11-19 19:29 ` pinskia at gcc dot gnu.org
2023-11-20 10:14 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-19 19:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112618
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2023-11-19
Summary|internal compiler error: in |[13/14 Regression] internal
|expand_MASK_CALL, at |compiler error: in
|internal-fn.cc:4529 |expand_MASK_CALL, at
| |internal-fn.cc:4529
Status|UNCONFIRMED |NEW
Known to work| |12.1.0
Target Milestone|--- |13.3
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112618] [13/14 Regression] internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529
2023-11-19 12:13 [Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529 hubicka at gcc dot gnu.org
2023-11-19 19:29 ` [Bug tree-optimization/112618] [13/14 Regression] " pinskia at gcc dot gnu.org
@ 2023-11-20 10:14 ` rguenth at gcc dot gnu.org
2023-11-20 14:01 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-20 10:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112618
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Blocks| |53947
Status|NEW |ASSIGNED
Version|unknown |13.2.1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. We're not marking the .MASK_CALL as relevant which is possibly
OK since 'bar' is const. But we also fail to elide it.
/* For if-conversion of inbranch SIMD clones. */
DEF_INTERNAL_FN (MASK_CALL, ECF_NOVOPS, NULL)
ECF_NOVOPS is a bit heavy.
We're "removing" scalar stmts in some places but do not care about
not relevant ones.
I have a patch.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947
[Bug 53947] [meta-bug] vectorizer missed-optimizations
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112618] [13/14 Regression] internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529
2023-11-19 12:13 [Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529 hubicka at gcc dot gnu.org
2023-11-19 19:29 ` [Bug tree-optimization/112618] [13/14 Regression] " pinskia at gcc dot gnu.org
2023-11-20 10:14 ` rguenth at gcc dot gnu.org
@ 2023-11-20 14:01 ` cvs-commit at gcc dot gnu.org
2023-11-20 14:03 ` [Bug tree-optimization/112618] [13 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-20 14:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112618
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:57c028acbec4f7b594e6b024e02d6c799b51e03d
commit r14-5627-g57c028acbec4f7b594e6b024e02d6c799b51e03d
Author: Richard Biener <rguenther@suse.de>
Date: Mon Nov 20 11:12:43 2023 +0100
tree-optimization/112618 - unused .MASK_CALL
We have to make sure to remove unused .MASK_CALL internal function
calls after vectorization.
PR tree-optimization/112618
* tree-vect-loop.cc (vect_transform_loop_stmt): For not
relevant and unused .MASK_CALL make sure we remove the
scalar stmt.
* gcc.dg/pr112618.c: New testcase.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112618] [13 Regression] internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529
2023-11-19 12:13 [Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529 hubicka at gcc dot gnu.org
` (2 preceding siblings ...)
2023-11-20 14:01 ` cvs-commit at gcc dot gnu.org
@ 2023-11-20 14:03 ` rguenth at gcc dot gnu.org
2024-02-06 13:20 ` cvs-commit at gcc dot gnu.org
2024-02-06 13:21 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-20 14:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112618
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112618] [13 Regression] internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529
2023-11-19 12:13 [Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529 hubicka at gcc dot gnu.org
` (3 preceding siblings ...)
2023-11-20 14:03 ` [Bug tree-optimization/112618] [13 " rguenth at gcc dot gnu.org
@ 2024-02-06 13:20 ` cvs-commit at gcc dot gnu.org
2024-02-06 13:21 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-02-06 13:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112618
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:016ca45dcba40ed73869caf37f09023fa7fca5f8
commit r13-8291-g016ca45dcba40ed73869caf37f09023fa7fca5f8
Author: Richard Biener <rguenther@suse.de>
Date: Mon Nov 20 11:12:43 2023 +0100
tree-optimization/112618 - unused .MASK_CALL
We have to make sure to remove unused .MASK_CALL internal function
calls after vectorization.
PR tree-optimization/112618
* tree-vect-loop.cc (vect_transform_loop_stmt): For not
relevant and unused .MASK_CALL make sure we remove the
scalar stmt.
* gcc.dg/pr112618.c: New testcase.
(cherry picked from commit 57c028acbec4f7b594e6b024e02d6c799b51e03d)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/112618] [13 Regression] internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529
2023-11-19 12:13 [Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529 hubicka at gcc dot gnu.org
` (4 preceding siblings ...)
2024-02-06 13:20 ` cvs-commit at gcc dot gnu.org
@ 2024-02-06 13:21 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-02-06 13:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112618
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Known to work| |13.2.1
Status|ASSIGNED |RESOLVED
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-02-06 13:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-19 12:13 [Bug tree-optimization/112618] New: internal compiler error: in expand_MASK_CALL, at internal-fn.cc:4529 hubicka at gcc dot gnu.org
2023-11-19 19:29 ` [Bug tree-optimization/112618] [13/14 Regression] " pinskia at gcc dot gnu.org
2023-11-20 10:14 ` rguenth at gcc dot gnu.org
2023-11-20 14:01 ` cvs-commit at gcc dot gnu.org
2023-11-20 14:03 ` [Bug tree-optimization/112618] [13 " rguenth at gcc dot gnu.org
2024-02-06 13:20 ` cvs-commit at gcc dot gnu.org
2024-02-06 13:21 ` rguenth at gcc dot gnu.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).