This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] X - usub.sat(X, Y) => umin(X, Y)
ClosedPublic

Authored by xbolva00 on Apr 23 2021, 10:27 AM.

Details

Summary

Pattern regressed in LLVM 9 with the introduction of usub.sat.

Fixes https://bugs.llvm.org/show_bug.cgi?id=42178#c2

Diff Detail

Event Timeline

xbolva00 created this revision.Apr 23 2021, 10:27 AM
xbolva00 requested review of this revision.Apr 23 2021, 10:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 23 2021, 10:27 AM
This revision is now accepted and ready to land.Apr 23 2021, 12:02 PM
This revision was landed with ongoing or failed builds.Apr 23 2021, 12:13 PM
This revision was automatically updated to reflect the committed changes.