[Bug c++/92948] New: internal compiler error: in tsubst_copy, at cp/pt.c:15788

2019-12-15 Thread piotrsiupa at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: piotrsiupa at gmail dot com Target Milestone: --- Created attachment 47500 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47500&action=edit Minimal and complete example There is a

[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

[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)