* [Bug tree-optimization/112505] [12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
@ 2023-11-13 6:10 ` pinskia at gcc dot gnu.org
2023-11-13 6:11 ` pinskia at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-13 6:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |11.1.0, 11.4.0
Keywords| |ice-on-valid-code,
| |needs-bisection
Ever confirmed|0 |1
Known to fail| |12.1.0
Target Milestone|--- |12.4
Summary|GCC: 14: internal compiler |[12/13/14 Regression]
|error: in |internal compiler error: in
|build_vector_from_val, at |build_vector_from_val, at
|tree.cc:2104 |tree.cc:2104
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-11-13
Component|c |tree-optimization
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Simplier testcase:
```
short int w9;
struct T {
short a : 14;
int b;
};
struct T v;
void zc() {
for(int i = 0; i < 4; i ++)
w9 *= v.b ? v.a-- < 0 : 0;
}
```
Just compiler at `-O3 -fno-vect-cost-model`
<unnamed-unsigned:14> _30;
vector(4) unsigned short _31;
...
_31 = {_60, _59, _2, _30};
_52 = (vector(4) signed short) _31;
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
2023-11-13 6:10 ` [Bug tree-optimization/112505] [12/13/14 Regression] " pinskia at gcc dot gnu.org
@ 2023-11-13 6:11 ` pinskia at gcc dot gnu.org
2023-11-13 9:32 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-13 6:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |53947
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like 11.x was not able to vectorize the loop.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947
[Bug 53947] [meta-bug] vectorizer missed-optimizations
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
2023-11-13 6:10 ` [Bug tree-optimization/112505] [12/13/14 Regression] " pinskia at gcc dot gnu.org
2023-11-13 6:11 ` pinskia at gcc dot gnu.org
@ 2023-11-13 9:32 ` rguenth at gcc dot gnu.org
2023-12-07 9:53 ` [Bug tree-optimization/112505] [11/12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076 jakub at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-13 9:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Again bit-precision int:14 vs. 'int'. Fallout of the bitfield vectorization
support I guess.
Like the other PR we can fend this off in vectorizable_induction (I suppose
vectorizable_reduction might have similar issues).
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [11/12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
` (2 preceding siblings ...)
2023-11-13 9:32 ` rguenth at gcc dot gnu.org
@ 2023-12-07 9:53 ` jakub at gcc dot gnu.org
2024-01-11 13:08 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-12-07 9:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|12.4 |11.5
Summary|[12/13/14 Regression] |[11/12/13/14 Regression]
|internal compiler error: in |internal compiler error: in
|build_vector_from_val, at |build_vector_from_val, at
|tree.cc:2104 |tree.cc:2104 since r10-4076
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r10-4076-g82e8e335f917b9ce40801838c06f7945cf88da43
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [11/12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
` (3 preceding siblings ...)
2023-12-07 9:53 ` [Bug tree-optimization/112505] [11/12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076 jakub at gcc dot gnu.org
@ 2024-01-11 13:08 ` rguenth at gcc dot gnu.org
2024-01-11 14:13 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-11 13:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
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
Status|NEW |ASSIGNED
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
I have a patch.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [11/12/13/14 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
` (4 preceding siblings ...)
2024-01-11 13:08 ` rguenth at gcc dot gnu.org
@ 2024-01-11 14:13 ` cvs-commit at gcc dot gnu.org
2024-02-06 13:20 ` [Bug tree-optimization/112505] [11/12/13 " cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-11 14:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
--- Comment #6 from GCC 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:ec345df53556ec581590347f71c3d9ff3cdbca76
commit r14-7140-gec345df53556ec581590347f71c3d9ff3cdbca76
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 11 14:00:33 2024 +0100
tree-optimization/112505 - bit-precision induction vectorization
Vectorization of bit-precision inductions isn't implemented but we
don't check this, instead we ICE during transform.
PR tree-optimization/112505
* tree-vect-loop.cc (vectorizable_induction): Reject
bit-precision induction.
* gcc.dg/vect/pr112505.c: New testcase.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [11/12/13 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
` (5 preceding siblings ...)
2024-01-11 14:13 ` cvs-commit at gcc dot gnu.org
@ 2024-02-06 13:20 ` cvs-commit at gcc dot gnu.org
2024-05-17 11:12 ` [Bug tree-optimization/112505] [11/12 " cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ 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=112505
--- Comment #7 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:9895fc7ab14f4cf571071184877f130b7bd0a59b
commit r13-8290-g9895fc7ab14f4cf571071184877f130b7bd0a59b
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 11 14:00:33 2024 +0100
tree-optimization/112505 - bit-precision induction vectorization
Vectorization of bit-precision inductions isn't implemented but we
don't check this, instead we ICE during transform.
PR tree-optimization/112505
* tree-vect-loop.cc (vectorizable_induction): Reject
bit-precision induction.
* gcc.dg/vect/pr112505.c: New testcase.
(cherry picked from commit ec345df53556ec581590347f71c3d9ff3cdbca76)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [11/12 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
` (6 preceding siblings ...)
2024-02-06 13:20 ` [Bug tree-optimization/112505] [11/12/13 " cvs-commit at gcc dot gnu.org
@ 2024-05-17 11:12 ` cvs-commit at gcc dot gnu.org
2024-06-21 9:22 ` [Bug tree-optimization/112505] [11 " cvs-commit at gcc dot gnu.org
2024-06-21 9:37 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-05-17 11:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:4a71557fbebe3fb4031d1c2adc4f89c89a8c6c62
commit r12-10454-g4a71557fbebe3fb4031d1c2adc4f89c89a8c6c62
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 11 14:00:33 2024 +0100
tree-optimization/112505 - bit-precision induction vectorization
Vectorization of bit-precision inductions isn't implemented but we
don't check this, instead we ICE during transform.
PR tree-optimization/112505
* tree-vect-loop.cc (vectorizable_induction): Reject
bit-precision induction.
* gcc.dg/vect/pr112505.c: New testcase.
(cherry picked from commit ec345df53556ec581590347f71c3d9ff3cdbca76)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [11 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
` (7 preceding siblings ...)
2024-05-17 11:12 ` [Bug tree-optimization/112505] [11/12 " cvs-commit at gcc dot gnu.org
@ 2024-06-21 9:22 ` cvs-commit at gcc dot gnu.org
2024-06-21 9:37 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-06-21 9:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:ffaa61eb15dce3e48b4dcbca7161fc79ac9734b8
commit r11-11524-gffaa61eb15dce3e48b4dcbca7161fc79ac9734b8
Author: Richard Biener <rguenther@suse.de>
Date: Thu Jan 11 14:00:33 2024 +0100
tree-optimization/112505 - bit-precision induction vectorization
Vectorization of bit-precision inductions isn't implemented but we
don't check this, instead we ICE during transform.
PR tree-optimization/112505
* tree-vect-loop.c (vectorizable_induction): Reject
bit-precision induction.
* gcc.dg/vect/pr112505.c: New testcase.
(cherry picked from commit ec345df53556ec581590347f71c3d9ff3cdbca76)
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/112505] [11 Regression] internal compiler error: in build_vector_from_val, at tree.cc:2104 since r10-4076
2023-11-13 3:45 [Bug c/112505] New: GCC: 14: internal compiler error: in build_vector_from_val, at tree.cc:2104 141242068 at smail dot nju.edu.cn
` (8 preceding siblings ...)
2024-06-21 9:22 ` [Bug tree-optimization/112505] [11 " cvs-commit at gcc dot gnu.org
@ 2024-06-21 9:37 ` rguenth at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-06-21 9:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112505
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread