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. ***
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 (
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.
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
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
>
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 -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343
Andrew Pinski changed:
What|Removed |Added
Ever confirmed|0 |1
Status|UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106343
Andrew Pinski changed:
What|Removed |Added
Status|NEW |UNCONFIRMED
Ever confirmed|1