This is an archive of the discontinued LLVM Phabricator instance.

[SLP] restrict matching of load combine candidates
ClosedPublic

Authored by spatel on May 7 2021, 8:13 AM.

Details

Summary

The test example from https://llvm.org/PR50256 (and reduced here) shows that we can match a load combine candidate even when there are no "or" instructions. We can avoid that by confirming that we do see an "or". This doesn't apply when matching an or-reduction because that match begins from the operands of the reduction.

Diff Detail

Event Timeline

spatel created this revision.May 7 2021, 8:13 AM
spatel requested review of this revision.May 7 2021, 8:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 7 2021, 8:13 AM
RKSimon accepted this revision.May 9 2021, 4:42 AM

LGTM - cheers

This revision is now accepted and ready to land.May 9 2021, 4:42 AM
This revision was automatically updated to reflect the committed changes.