[PATCH] D133471: [DAGCombiner][X86] Fold (sub (subcarry X, 0, Carry), Y) -> (subcarry X, Y, Carry)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 07:17:23 PDT 2022


spatel added a reviewer: deadalnix.
spatel added a comment.

Is the transform still profitable if the subcarry has another use? (not sure how to write a test for that)

In IR, it looks like we'd reduce the equivalent of "subcarry X, 0, Carry" to "usubo X, Carry". Are those the same semantics for this node? And would that simpler transform make sense in SDAG too?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133471



More information about the llvm-commits mailing list