[PATCH] D125642: [X86] Attempt to fold EFLAGS into X86ISD::ADD/SUB ops
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 15 14:10:45 PDT 2022
RKSimon created this revision.
RKSimon added reviewers: craig.topper, pengfei, chfast.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.
We already use combineAddOrSubToADCOrSBB to fold extended EFLAGS results into ISD::ADD/SUB ops as X86ISD::ADC/SBB carry ops.
This patch extends this to also fold EFLAGS results with X86ISD::ADD/SUB ops
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125642
Files:
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/add-sub-bool.ll
llvm/test/CodeGen/X86/addcarry.ll
llvm/test/CodeGen/X86/combine-sbb.ll
llvm/test/CodeGen/X86/subcarry.ll
llvm/test/CodeGen/X86/xor-icmp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125642.429558.patch
Type: text/x-patch
Size: 10161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220515/39ced2ac/attachment-0001.bin>
More information about the llvm-commits
mailing list