[PATCH] D71979: [X86] Add X86ISD::PCMPGT to SimplifyMultipleUseDemandedBitsForTargetNode.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 29 13:46:30 PST 2019
craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
If only the sign bit is demanded, and the LHS is all zeroes, then
we can bypass the PCMPGT.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71979
Files:
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/sadd_sat.ll
llvm/test/CodeGen/X86/sadd_sat_vec.ll
llvm/test/CodeGen/X86/ssub_sat.ll
llvm/test/CodeGen/X86/ssub_sat_vec.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71979.235522.patch
Type: text/x-patch
Size: 24278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191229/b8f09f93/attachment.bin>
More information about the llvm-commits
mailing list