[PATCH] D118037: [DAGCombine] Consider SETULT as carry flag

Paweł Bylica via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 14 11:27:47 PDT 2022


chfast added a comment.

On the high level note, using __builtin_subc() or __builtin_sub_with_overflow() is good enough workaround.

I also think it would be very nice to have generic addc/subc intrinsic on LLVM IR level. Then many of these carry matching could be done in LLVM IR.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118037



More information about the llvm-commits mailing list