https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108751
Bug ID: 108751
Summary: Removing dead code results in worse optimization at
-Os
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Prior
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108751
--- Comment #1 from Theodoros Theodoridis ---
I am not sure if this qualifies as a "bug"/missed optimization but I'd be
interested in understanding why these changes cause such a difference. Thanks!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104526
Bug ID: 104526
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs. 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: nor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104530
Bug ID: 104530
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs. 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: nor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103257
Bug ID: 103257
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103280
Bug ID: 103280
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103281
Bug ID: 103281
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103359
Bug ID: 103359
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103388
Bug ID: 103388
Summary: [12 Regression] missed optimization for dead code
elimination at -O3 (vs. -O2)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102546
Bug ID: 102546
Summary: Missed Dead Code Elimination regression (trunk vs
11.2.0) at -O3
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102546
--- Comment #1 from Theodoros Theodoridis ---
It bisects to 2e96b5f14e4025691b57d2301d71aa6092ed44bc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102648
Bug ID: 102648
Summary: Dead Code Elimination Regression at -O3 (trunk vs
11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Pri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102650
Bug ID: 102650
Summary: Dead Code Elimination Regression at -O3 (trunk vs
11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Pri
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102703
Bug ID: 102703
Summary: [12 Regression] Dead Code Elimination Regression at
-O3
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Prio
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102705
Bug ID: 102705
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102703
--- Comment #1 from Theodoros Theodoridis ---
(11.2.0 at -O3 can eliminate the call to foo but trunk at -O3 cannot)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102879
Bug ID: 102879
Summary: [12 Regression] Dead Code Elimination Regression at
-O3
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Prior
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102880
Bug ID: 102880
Summary: [12 Regression] Dead Code Elimination Regression at
-O3
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Prior
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102892
Bug ID: 102892
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102895
Bug ID: 102895
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102950
Bug ID: 102950
Summary: [11 Regression] Dead Code Elimination Regression at
-O3 (trunk&11.2.0 vs 10.3.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severit
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102981
Bug ID: 102981
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982
Bug ID: 102982
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982
--- Comment #1 from Theodoros Theodoridis ---
Maybe it's related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102880 as
they both bisect to the same commit.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102983
Bug ID: 102983
Summary: [12 Regression] Dead Code Elimination Regression at
-O3 (trunk vs 11.2.0)
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: norm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105832
Bug ID: 105832
Summary: Dead Code Elimination Regression at -O3 (trunk vs.
12.1.0)
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105833
Bug ID: 105833
Summary: Dead Code Elimination Regression at -O2 (trunk vs.
12.1.0)
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105834
Bug ID: 105834
Summary: Dead Code Elimination Regression at -O2 (trunk vs.
12.1.0)
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105835
Bug ID: 105835
Summary: Dead Code Elimination Regression at -O1 (trunk vs.
12.1.0)
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110768
Bug ID: 110768
Summary: [14 Regression] Dead Code Elimination Regression since
r14-2623-gc11a3aedec2
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110841
Bug ID: 110841
Summary: [14 Regression] Dead Code Elimination Regression since
r14-2675-gef28aadad6e
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110875
Bug ID: 110875
Summary: [14 Regression] Dead Code Elimination Regression since
r14-2501-g285c9d042e9
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110891
Bug ID: 110891
Summary: [14 Regression] Dead Code Elimination Regression since
r14-2674-gd0de3bf9175
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110903
Bug ID: 110903
Summary: [14 Regression] Dead Code Elimination Regression since
r14-1597-g64d90d06d2d
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110931
Bug ID: 110931
Summary: [14 Regression] Dead Code Elimination Regression since
r14-2890-gcc2003cd875
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110932
Bug ID: 110932
Summary: [14 Regression] Dead Code Elimination Regression since
r14-2230-g7e904d6c7f2
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110963
Bug ID: 110963
Summary: [14 Regression] Dead Code Elimination Regression since
r14-2946-g46c8c225455
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110963
--- Comment #5 from Theodoros Theodoridis ---
(In reply to Richard Biener from comment #4)
> Alternatively you can put __attribute__((hot)) on 'main' which we otherwise
> consider cold. Maybe that's a good idea for future DCE regression searche
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111292
Bug ID: 111292
Summary: Missed Dead Code Elimination since
r14-2228-g02460c0b8c9
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Prio
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111293
Bug ID: 111293
Summary: [14 Regression] Missed Dead Code Elimination since
r14-3414-g0cfc9c953d0
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: norma
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111294
Bug ID: 111294
Summary: [14 Regression] Missed Dead Code Elimination since
r14-573-g69f1a8af45d
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111326
Bug ID: 111326
Summary: [14 Regression] Dead Code Elimination Regression since
r14-376-g47a76439911
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111456
Bug ID: 111456
Summary: [14 Regression] Dead Code Elimination Regression since
r14-3719-gb34f3736356
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111457
Bug ID: 111457
Summary: [14 Regression] Dead Code Elimination Regression since
r14-3407-g936a12331a2
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111515
Bug ID: 111515
Summary: [14 Regression] Missed Dead Code Elimination since
r14-4089-gd45ddc2c04e
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111515
--- Comment #3 from Theodoros Theodoridis ---
I'm re-reducing the case so that the missed optimization does not depend on
inlining to main (the bisection will stay the same). I'll post the updated code
soon.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111517
Theodoros Theodoridis changed:
What|Removed |Added
CC||theodort at inf dot ethz.ch
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109213
Bug ID: 109213
Summary: [13 Regression] -Os generates significantly more code
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109513
Bug ID: 109513
Summary: Missed Dead Code Elimination when using
__builtin_unreachable
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109546
Bug ID: 109546
Summary: [13 Regression] Missed Dead Code Elimination when
using __builtin_unreachable
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109588
Bug ID: 109588
Summary: [13 Regression] Missed Dead Code Elimination when
using __builtin_unreachable
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799
Bug ID: 111799
Summary: [14 Regression] Missed Dead Code Elimination since
r14-2365-g2e406f0753e
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: norma
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111801
Bug ID: 111801
Summary: [14 Regression] Missed Dead Code Elimination since
r14-4141-gbf6b107e2a3
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: norma
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111515
--- Comment #4 from Theodoros Theodoridis ---
It turns out that the unreduced test case is also depended on not-inlining to
main. I will be more careful with filtering out such cases in the future.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799
--- Comment #4 from Theodoros Theodoridis ---
Oops, there was a bug in my reduction, here's the fixed code:
https://godbolt.org/z/shxffzs8E
void foo(void);
typedef unsigned short uint16_t;
static int b;
static int c;
static int *f = &b;
st
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111864
Bug ID: 111864
Summary: [14 Regression] Dead Code Elimination Regression since
r14-4038-gb975c0dc3be
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112508
Bug ID: 112508
Summary: [14 Regression] Size regression when using -Os
starting with r14-4089-gd45ddc2c04e
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Sever
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112542
Bug ID: 112542
Summary: [14 Regression] Dead Code Elimination Regression since
r14-4280-gc3c6f30496d
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112545
Bug ID: 112545
Summary: [14 Regression] Size regression when using -Os
starting with r14-569-g21e2ef2dc25
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109893
Bug ID: 109893
Summary: [14 Regression] Missed Dead Code Elimination when
using __builtin_unreachable since
r14-160-gf828503eeb79ad1f1ada6db7deccc5abcc2f3ca3
Product: gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109943
Bug ID: 109943
Summary: [13/14 Regression] Missed Dead Code Elimination when
using __builtin_unreachable since
r13-6834-g41ade3399bd
Product: gcc
Version: 14.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110080
Bug ID: 110080
Summary: [13/14 Regression] Missed Dead Code Elimination at -Os
when using __builtin_unreachable since
r13-6945-g429a7a88438
Product: gcc
Version:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110080
--- Comment #1 from Theodoros Theodoridis ---
Oops, the first code snippet is wrong in the original post:
void foo(void);
static unsigned char a = 131;
static int *b;
static int **c = &b;
static void d(int e, unsigned f) {
int *g;
if (
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110131
Bug ID: 110131
Summary: [13/14 Regression] Missed Dead Code Elimination when
using __builtin_unreachable since
r12-6924-gc2b610e7c6c
Product: gcc
Version: 14.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110173
Bug ID: 110173
Summary: [14 Regression] Missed Dead Code Elimination when
using __builtin_unreachable since r14-569-g21e2ef2dc25
Product: gcc
Version: 14.0
Status: UNCON
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110173
--- Comment #1 from Theodoros Theodoridis ---
*The first piece of ASM is generated by gcc 13.1, the second by gcc trunk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110177
Bug ID: 110177
Summary: [12/13/14 Regression] Missed Dead Code Elimination
when using __builtin_unreachable since
r12-2305-g398572c1544
Product: gcc
Version: 14.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110269
Bug ID: 110269
Summary: 13/14 Regression] Missed Dead Code Elimination when
using __builtin_unreachable since
r13-4607-g2dc5d6b1e7e
Product: gcc
Version: 14.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110173
--- Comment #7 from Theodoros Theodoridis ---
The modified case (s/j();/j(0);/) bisects to r13-1934-g353fd1ec3df
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110177
--- Comment #3 from Theodoros Theodoridis ---
I think the correct bisection is: r11-3063-gfcae5121154 (or its parent
r11-3062-g90e88fd376b)
I can't build its parent but with its grandparent r11-3061-g1644d7f4c1c the
call to foo is eliminated:
g
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109943
--- Comment #2 from Theodoros Theodoridis ---
Not sure if it's useful but the following also started with the same commit:
https://godbolt.org/z/Tqha4K976
Given the following code:
void foo(void);
static int d, e, h;
static int *f = &e, *q;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110327
Bug ID: 110327
Summary: [12/13/14 Regression] Missed Dead Code Elimination
when using __builtin_unreachable since
r12-4790-g4b3a325f07a
Product: gcc
Version: 14.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110361
Bug ID: 110361
Summary: [13/14 Regression] Missed Dead Code Elimination when
using __builtin_unreachable since
r13-2020-g16b013c9d9b
Product: gcc
Version: 14.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110413
Bug ID: 110413
Summary: [14 Regression] Missed Dead Code Elimination when
using __builtin_unreachable since
r14-1880-g827e208fa64
Product: gcc
Version: 14.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110414
Bug ID: 110414
Summary: [14 Regression] Dead Code Elimination Regression
since r14-1127-g9e2017ae6ac
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110450
Bug ID: 110450
Summary: [14 Regression] Dead Code Elimination Regression at
-O2 since r14-261-g0ef3756adf0
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Sever
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110502
Bug ID: 110502
Summary: [14 Regression] Dead Code Elimination Regression at
-Os since r14-1656-g55fcaa9a8bd
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Seve
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110503
Bug ID: 110503
Summary: [13/14 Regression] Dead Code Elimination Regression at
-O3 since r13-322-g7f04b0d786e
Product: gcc
Version: 14.0
Status: UNCONFIRMED
S
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110538
Bug ID: 110538
Summary: [14 Regression] Dead Code Elimination Regression since
r14-368-ge1366a7e4ce
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110539
Bug ID: 110539
Summary: [14 Regression] Dead Code Elimination Regression at
since r14-338-g1dd154f6407
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110540
Bug ID: 110540
Summary: [14 Regression] Dead Code Elimination Regression since
r14-1163-gd8b058d3ca4
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: n
81 matches
Mail list logo