[Bug tree-optimization/106343] SLP does not support no-op case

2023-11-16 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343 --- Comment #8 from Andrew Pinski --- *** Bug 112579 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/106343] SLP does not support no-op case

2022-07-18 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343 --- Comment #7 from Richard Biener --- SLP discovery doesn't support this (and there's for sure some duplicate bug about this). Note that SLP discovery currently does a greedy search from the stores and it commits to the first "working" graph (

[Bug tree-optimization/106343] SLP does not support no-op case

2022-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343 --- Comment #6 from Andrew Pinski --- (In reply to Erick Ochoa from comment #5) > I think it should be possible to also consider the bit-shifts operations: > > >> 0 > << 0 Yes and rotates too.

[Bug tree-optimization/106343] SLP does not support no-op case

2022-07-18 Thread eochoa at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343 Erick Ochoa changed: What|Removed |Added CC||eochoa at gcc dot gnu.org --- Comment #5

[Bug tree-optimization/106343] SLP does not support no-op case

2022-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > I should note that I noticed LLVM does not handle this either. > > Basically the following operators and values can be used: > For integer: > + 0 > - 0 > * 1 >

[Bug tree-optimization/106343] SLP does not support no-op case

2022-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343 --- Comment #3 from Andrew Pinski --- I should note that I noticed LLVM does not handle this either. Basically the following operators and values can be used: For integer: + 0 - 0 * 1 / 1 | 0 & -1 (all ones) ^ 0 For floating point (only with -

[Bug tree-optimization/106343] SLP does not support no-op case

2022-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/106343] SLP does not support no-op case

2022-07-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343 Andrew Pinski changed: What|Removed |Added Status|NEW |UNCONFIRMED Ever confirmed|1