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

Paweł Bylica via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 24 05:07:44 PST 2022


chfast created this revision.
chfast added a reviewer: craig.topper.
Herald added subscribers: ecnelises, steven.zhang, pengfei, hiraditya.
chfast requested review of this revision.
Herald added a project: LLVM.

The SETcc/SETULT sets carry flag in the same way as usub, so it can
be considered as a carry flag and pulled into addcarry, subcarry nodes.

This is a draft of a change similar to https://reviews.llvm.org/D78984
but done in DAGCombiner.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118037

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/addcarry.ll
  llvm/test/CodeGen/X86/cmp-carry.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118037.402481.patch
Type: text/x-patch
Size: 3843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220124/4e335a2a/attachment.bin>


More information about the llvm-commits mailing list