[Bug tree-optimization/90693] Missing popcount simplifications

2024-01-07 Thread piotrsiupa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90693 --- Comment #11 from Piotr Siupa --- Thanks! Now the generated assembly is one instruction shorter. It works for: bool foo(unsigned x) { [[assume(x != 0)]]; return std::has_single_bit(x); } and for: bool foo(unsigned x) { if (x == 0)

[Bug tree-optimization/90693] Missing popcount simplifications

2024-01-01 Thread piotrsiupa at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90693 Piotr Siupa changed: What|Removed |Added CC||piotrsiupa at gmail dot com --- Comment #8