[Bug tree-optimization/118267] Suboptimal code for bool bitfield tests

2025-01-13 Thread aoliva at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118267 --- Comment #3 from Alexandre Oliva --- The blocks are ineligible for ifcombine because the dereferences could trap. Some flow-dependent information could enable us to conclude that only the first dereference could trap, and it would remain in

[Bug tree-optimization/118267] Suboptimal code for bool bitfield tests

2025-01-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118267 --- Comment #2 from Richard Biener --- struct SomeClass { unsigned cfg1 : 1; unsigned cfg2 : 1; unsigned cfg3 : 1; bool check() const noexcept { return cfg1 || cfg2 || cfg3; } }; bool check(const SomeClass& rt) { return rt.c

[Bug tree-optimization/118267] Suboptimal code for bool bitfield tests

2025-01-07 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118267 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 CC|