This is an archive of the discontinued LLVM Phabricator instance.

[Instsimplfy] X == Y ? 0 : X ^ Y --> X ^ Y
ClosedPublic

Authored by Allen on May 16 2023, 8:51 PM.

Diff Detail

Event Timeline

Allen created this revision.May 16 2023, 8:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 8:51 PM
Allen requested review of this revision.May 16 2023, 8:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2023, 8:51 PM
nikic accepted this revision.May 17 2023, 1:49 AM

LGTM

llvm/test/Transforms/InstSimplify/select.ll
1529

Add a negative test where the xor operands are not %0 and %1 (but e.g. %0 and some other argument).

This revision is now accepted and ready to land.May 17 2023, 1:49 AM
Allen updated this revision to Diff 522971.May 17 2023, 2:38 AM

add a negative test select_xor_cmp_unmatched_operands

This revision was landed with ongoing or failed builds.May 17 2023, 3:38 AM
This revision was automatically updated to reflect the committed changes.
Allen marked an inline comment as done.