[llvm] [X86] Match SETCC_CARRY in addition of SUB when trying to reconstruct LEA (PR #126551)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 12 06:03:09 PST 2025


================
@@ -51985,21 +51985,30 @@ static SDValue combineOr(SDNode *N, SelectionDAG &DAG,
     return R;
 
   // (0 - SetCC) | C -> (zext (not SetCC)) * (C + 1) - 1 if we can get a LEA out of it.
----------------
phoebewang wrote:

Update comments for SETCC_CARRY?

https://github.com/llvm/llvm-project/pull/126551


More information about the llvm-commits mailing list