This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] with logical ops: (0 == (X | Y)) ? X : 0 --> 0
AbandonedPublic

Authored by Allen on Apr 25 2023, 7:17 AM.

Details

Summary

This code try to internally match the EQ predicate when their
operands swapped.

Diff Detail

Event Timeline

Allen created this revision.Apr 25 2023, 7:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 7:17 AM
Allen requested review of this revision.Apr 25 2023, 7:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 7:17 AM
nikic requested changes to this revision.Apr 25 2023, 7:18 AM

This will be canonicalized by InstCombine.

This revision now requires changes to proceed.Apr 25 2023, 7:18 AM
Allen abandoned this revision.Apr 25 2023, 5:52 PM