This is an archive of the discontinued LLVM Phabricator instance.

[X86] Handle more cases in combineAddOrSubToADCOrSBB.
ClosedPublic

Authored by craig.topper on Apr 28 2020, 12:23 AM.

Details

Summary

This adds support for

X + SETAE --> sbb X, -1
X - SETAE --> adc X, -1

Fixes PR45700

Diff Detail

Event Timeline

craig.topper created this revision.Apr 28 2020, 12:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 28 2020, 12:23 AM
RKSimon accepted this revision.Apr 28 2020, 3:14 AM

LGTM - might be worth pre-committing the tests so committing the patch shows the changes in codegen.

This revision is now accepted and ready to land.Apr 28 2020, 3:14 AM
This revision was automatically updated to reflect the committed changes.