This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Test case for icmp imply (NFC)
ClosedPublic

Authored by floatshadow on Apr 29 2023, 12:29 AM.

Details

Summary

ugt/uge/sgt/sge test for the extension to isImpliedCondOperands
case from issue 62441 and 61393: (X >> Z) <=(u) Y ==> X <=(to u) Y and (X > Y +_{nuw} 1) ==> X != Y

regenerate the CHECK lines

Diff Detail

Event Timeline

floatshadow created this revision.Apr 29 2023, 12:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2023, 12:29 AM
floatshadow requested review of this revision.Apr 29 2023, 12:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2023, 12:29 AM
floatshadow retitled this revision from [InstSimplify] Test case D149510 to [InstSimplify] Test case for icmp imply (NFC).Apr 30 2023, 9:16 PM
floatshadow set the repository for this revision to rG LLVM Github Monorepo.

test case for extension to isImpliedCondOperands with SGT/SGE check

update sge/sgt/uge/ugt case

negative cases. e.g. ugt with no signed and unsigned wrap add, ugt with signed wrap add

floatshadow edited the summary of this revision. (Show Details)May 3 2023, 9:14 AM

There are some unrelated changes. You can first push a commit that regenerates the test.

nikic accepted this revision.May 4 2023, 7:57 AM

LGTM

This revision is now accepted and ready to land.May 4 2023, 7:57 AM
This revision was automatically updated to reflect the committed changes.