[PATCH] D158364: [DAG] SimplifyDemandedBits - if we're only demanding the signbits, a SMIN/SMAX node can be simplified to a OR/AND node respectively.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 20 07:31:39 PDT 2023
RKSimon created this revision.
RKSimon added reviewers: craig.topper, nikic.
Herald added subscribers: StephenFan, pengfei, hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.
Extension to the signbit case, if the signbits extend down through all the demanded bits then SMIN/SMAX nodes can be simplified to a OR/AND.
Alive2: https://alive2.llvm.org/ce/z/StSehz
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158364
Files:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/known-signbits-vector.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158364.551830.patch
Type: text/x-patch
Size: 4926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230820/1383aced/attachment.bin>
More information about the llvm-commits
mailing list