[Bug middle-end/112985] LOGICAL_OP_NON_SHORT_CIRCUIT unconditionally execute comparison even if it's very expensive

2023-12-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112985 --- Comment #3 from Richard Biener --- Btw, ideally you'd vectorize these compares ;) (there's a missed-optimization bug for this I think)

[Bug middle-end/112985] LOGICAL_OP_NON_SHORT_CIRCUIT unconditionally execute comparison even if it's very expensive

2023-12-12 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112985 Richard Biener changed: What|Removed |Added Keywords||missed-optimization --- Comment #2

[Bug middle-end/112985] LOGICAL_OP_NON_SHORT_CIRCUIT unconditionally execute comparison even if it's very expensive

2023-12-12 Thread chenglulu at loongson dot cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112985 --- Comment #1 from chenglulu --- (In reply to Xi Ruoyao from comment #0) > /* { dg-do compile } */ > /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */ > > int > short_circuit (float *a) > { > float t1x = a[0]; > float t2x = a[1];