This is an archive of the discontinued LLVM Phabricator instance.

[ConstraintElimination] Add initial usub.with.overflow tests.
ClosedPublic

Authored by zjaffal on Sep 16 2022, 6:26 AM.

Details

Summary

Optimizations can be used to eliminate unecessary overflow checks. This patch introduces some test cases where the checks can be safely removed

Diff Detail

Event Timeline

zjaffal created this revision.Sep 16 2022, 6:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2022, 6:26 AM
zjaffal requested review of this revision.Sep 16 2022, 6:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2022, 6:26 AM
fhahn accepted this revision.Sep 16 2022, 7:05 AM

LGTM, thanks!

This revision is now accepted and ready to land.Sep 16 2022, 7:05 AM
zjaffal updated this revision to Diff 460742.Sep 16 2022, 7:05 AM

Fix usub_no_overflow_due_to_or_conds and usub_no_overflow_due_to_or_conds_sub_result_not_used to use the correct exit condition

fcloutier accepted this revision.Sep 16 2022, 8:51 AM
This revision was landed with ongoing or failed builds.Sep 26 2022, 8:44 AM
This revision was automatically updated to reflect the committed changes.