[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2022-01-28 Thread dragan.mladjenovic at syrmia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 dragan.mladjenovic at syrmia dot com changed: What|Removed |Added CC||dragan.mladjenovic

[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2020-10-09 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2020-10-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 --- Comment #7 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:781634daea8cb788efb33994f4a19df76598542e commit r11-3744-g781634daea8cb788efb33994f4a19df76598542e Author: Jakub Jelinek Date: Fr

[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2020-06-04 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 --- Comment #6 from Gabriel Ravier --- *** Bug 95532 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2020-04-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 --- Comment #5 from Jakub Jelinek --- In the source yes, but by the time the optimizer sees it on some targets x == 0 ? 32 : __builtin_clz (x) could have been already optimized into just __builtin_clz (x) depending on what the target macros say.

[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2020-04-27 Thread gabravier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 --- Comment #4 from Gabriel Ravier --- Isn't `__builtin_clz(0)` undefined ?

[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2020-04-27 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2020-04-27 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 --- Comment #2 from Marc Glisse --- if(a==0)__builtin_unreachable(); lets gcc optimize the code.

[Bug tree-optimization/94801] Failure to optimize narrowed __builtin_clz

2020-04-27 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94801 --- Comment #1 from Marc Glisse --- Gcc considers that clz might return 32 on some platforms, it does not currently use target-specific information to restrict the range of clz output.