Skip to content
Commit 481b1856 authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[X86] combineCarryThroughADD - recognise X86ISD::ADD(AND(X,1),-1) pattern can...

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

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

Differential Revision: https://reviews.llvm.org/D122572
parent 2f1261ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment