You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SelectionDAG] Expand [US]CMP using arithmetic on boolean values
The previous expansion of [US]CMP was done using two selects and two
compares. It produced decent code, but on many platforms it is better
to implement [US]CMP nodes by performing the following operation:
[us]cmp(x, y) = (x [us]> y) - (x [us]< y)
This patch adds this new expansion, as well as a hook in TargetLowering
to allow some targets to still use the select-based approach.
0 commit comments