[all-commits] [llvm/llvm-project] f059b0: [DAG] Add SelectionDAG::ComputeMinSignedBits helper

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Nov 8 06:13:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f059b04f7b811b0d4a9cc3e8449c0db4b2ccef79
      https://github.com/llvm/llvm-project/commit/f059b04f7b811b0d4a9cc3e8449c0db4b2ccef79
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [DAG] Add SelectionDAG::ComputeMinSignedBits helper

As suggested on 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.

Differential Revision: https://reviews.llvm.org/D113396




More information about the All-commits mailing list