This is an archive of the discontinued LLVM Phabricator instance.

[X86] combineCarryThroughADD - recognise X86ISD::ADD(AND(X,1),-1) pattern can be folded to X86ISD::BT
ClosedPublic

Authored by RKSimon on Mar 28 2022, 4:20 AM.

Details

Summary

As mentioned on D122482, if we've generated a masked overflow test see if we can fold it to X86ISD::BT to feed a X86ISD::ADC/SBB

Diff Detail

Event Timeline

RKSimon created this revision.Mar 28 2022, 4:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2022, 4:20 AM
RKSimon requested review of this revision.Mar 28 2022, 4:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 28 2022, 4:20 AM
RKSimon updated this revision to Diff 418872.Mar 29 2022, 7:20 AM

cleanup type legalization for BT nodes

This revision is now accepted and ready to land.Mar 30 2022, 5:23 PM
This revision was landed with ongoing or failed builds.Mar 31 2022, 1:54 AM
This revision was automatically updated to reflect the committed changes.