[Bug tree-optimization/113487] Missed optimization:simplify demanded bits on multi-use instructions like select

2024-01-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113487 --- Comment #3 from Richard Biener --- Feels more like reassoc to me. You could also view it as "bit-DCE", eliding defs of dead bits. Which might make it suitable for backprop (currently doing sth similar for the sign "bit").

[Bug tree-optimization/113487] Missed optimization:simplify demanded bits on multi-use instructions like select

2024-01-18 Thread xxs_chy at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113487 --- Comment #2 from XChy --- I may miss something here... Apart from this one, it seems that GCC doesn't simplify **one-use** instruction based on demanded bits too: https://godbolt.org/z/67bYxd8hY But LLVM indeed handle the one-use case.

[Bug tree-optimization/113487] Missed optimization:simplify demanded bits on multi-use instructions like select

2024-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113487 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-01-18

[Bug tree-optimization/113487] Missed optimization:simplify demanded bits on multi-use instructions like select

2024-01-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113487 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization