[PATCH] D113396: [DAG] Add SelectionDAG::ComputeMinSignedBits helper
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 8 05:45:22 PST 2021
RKSimon created this revision.
RKSimon added reviewers: lebedev.ri, spatel.
Herald added subscribers: foad, ecnelises, kerbowa, pengfei, hiraditya, nhaehnle, jvesely, arsenm.
RKSimon requested review of this revision.
Herald added a project: LLVM.
As suggested on D113371 <https://reviews.llvm.org/D113371>, this adds a wrapper to SelectionDAG::ComputeNumSignBits, similar to the llvm::ComputeMinSignedBits wrapper.
I've included some usage, its not exhaustive, just the more obvious cases where the intention is obvious.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D113396
Files:
llvm/include/llvm/CodeGen/SelectionDAG.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113396.385468.patch
Type: text/x-patch
Size: 7510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211108/b005d333/attachment.bin>
More information about the llvm-commits
mailing list