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
This transformation is beneficial because materializing the 15 argument to sub requires an extra instruction, but the 15 argument to xor can fit directly into the xor instruction
I think this should be done in DAGCombine, not InstCombine. We've recently encountered issues with sub -> xor canonicalization in cases where it cannot be reverted.
This transformation is beneficial because materializing the
15
argument tosub
requires an extra instruction, but the15
argument toxor
can fit directly into thexor
instructionRust example (https://godbolt.org/z/h7aTc5sca):
alive proof: https://alive2.llvm.org/ce/z/YKCPCA
The text was updated successfully, but these errors were encountered: