This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Baseline tests for folding ((x?1:4)&(y?1:4))==0 to x^y
AbandonedPublic

Authored by marcauberer on Sep 14 2022, 5:48 AM.

Details

Reviewers
spatel
RKSimon
Summary

Diff Detail

Event Timeline

marcauberer created this revision.Sep 14 2022, 5:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 5:48 AM
marcauberer requested review of this revision.Sep 14 2022, 5:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 5:48 AM

Please can you update the summary? These are just the tests, not the fix

Based on the description, we want a generalized proof like this:
https://alive2.llvm.org/ce/z/RrVEyX

And given that this pattern was found in real code, it seems plausible that we'd want to handle this variant too (likely as a small follow-up patch):
https://alive2.llvm.org/ce/z/ZobB7p

Update summary

marcauberer edited the summary of this revision. (Show Details)Sep 15 2022, 12:42 AM
marcauberer abandoned this revision.Sep 16 2022, 12:36 PM