[PATCH] D122084: [X86] combineAddOrSubToADCOrSBB - Fold ADD/SUB + (AND(SRL(X,Y),1) -> ADC/SBB+BT(X,Y)

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 19 19:12:18 PDT 2022


craig.topper added a comment.

Is this still an interesting optimization if the ISD::SRL doesn't exist? Replacing (and X, 1) with bt X, 0 to get the carry flag?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122084/new/

https://reviews.llvm.org/D122084



More information about the llvm-commits mailing list