This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Precommit a test
ClosedPublic

Authored by peixin on May 7 2023, 8:02 AM.

Details

Diff Detail

Event Timeline

peixin created this revision.May 7 2023, 8:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 7 2023, 8:02 AM
Herald added a subscriber: StephenFan. · View Herald Transcript
peixin requested review of this revision.May 7 2023, 8:02 AM
peixin updated this revision to Diff 538410.Jul 9 2023, 2:16 AM

Update test cases.

nikic accepted this revision.Jul 11 2023, 7:03 AM

LGTM

llvm/test/Transforms/InstCombine/select-icmp-and-zero-shl.ll
46

Add an extra use of %tobool.not (pass to call) to prevent it from being converted to icmp eq.

This revision is now accepted and ready to land.Jul 11 2023, 7:03 AM
peixin added inline comments.Jul 11 2023, 7:23 AM
llvm/test/Transforms/InstCombine/select-icmp-and-zero-shl.ll
46

This is added on purpose. The case of not being converted is @test_multi_use below.

nikic added inline comments.Jul 11 2023, 7:41 AM
llvm/test/Transforms/InstCombine/select-icmp-and-zero-shl.ll
46

Oh sorry, ignore my comment.

This revision was automatically updated to reflect the committed changes.