This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Teach decomposeBitTestICmp to handle non-canonical compares
ClosedPublic

Authored by craig.topper on Aug 12 2017, 1:04 PM.

Details

Summary

This adds support non-canonical compare predicates. InstSimplify can't rely on canonicalization to have occurred.

Diff Detail

Event Timeline

spatel edited edge metadata.Aug 14 2017, 11:04 AM

Make sure I'm seeing this correctly: this patch should contain additional tests for ule/uge; ult/ugt should be added to the step before this (D36593)?

Agreed. I'll go back and add the ugt and ult tests to the previous patch.

Add test changes for uge and ule.

spatel accepted this revision.Aug 14 2017, 3:06 PM

LGTM.

This revision is now accepted and ready to land.Aug 14 2017, 3:06 PM
This revision was automatically updated to reflect the committed changes.