This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Fold more Select with Or pattern
AbandonedPublic

Authored by liaolucy on Nov 26 2022, 5:29 AM.

Details

Reviewers
spatel
bcl5980
Summary

Diff Detail

Event Timeline

liaolucy created this revision.Nov 26 2022, 5:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2022, 5:29 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
liaolucy requested review of this revision.Nov 26 2022, 5:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2022, 5:29 AM
spatel added a subscriber: bcl5980.

This looks right, but it is incomplete - it does not handle the commuted pattern?
D138700 says it handles this and more, so let's proceed with that patch.
@bcl5980 - a vector test as shown here would be a good addition.

liaolucy abandoned this revision.Nov 28 2022, 6:32 PM

Let's proceed with D138700. I abandon this patch