Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SLP][NFC]Walk over entries, not single values.
Better to walk over SLP nodes rather than single values. Matching a value to a node is not a 1-to-1 relation, one value may be part of several nodes and compiler may get wrong node, when trying to map it. Currently there are no such issues detected, but they may appear in future.
- Loading branch information
938a734
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @alexey-bataev
This patch doesn't seem to be NFC, in fact it causes a miscompile.
Reproduce with
Before this patch we get
and after
Note the difference in the "xor" instructions.
bbi-95270.ll.gz
938a734
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote an issue about the miscompile #91309
938a734
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The patch itself is definitely NFC. If there is a bug after it, it means the bug existed before and the patch just revealed it. I'll fix it ASAP