[all-commits] [llvm/llvm-project] a1585a: [SelectionDAG] Expose the "getValidShiftAmount" he...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Feb 17 08:29:00 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a1585aec6fe7f9da0642b6b7cdf4b496ab078eff
      https://github.com/llvm/llvm-project/commit/a1585aec6fe7f9da0642b6b7cdf4b496ab078eff
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-02-17 (Mon, 17 Feb 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAG.h
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

  Log Message:
  -----------
  [SelectionDAG] Expose the "getValidShiftAmount" helpers available. NFCI.

These are going to be useful in TargetLowering::SimplifyDemandedBits, so expose these helpers outside of SelectionDAG.cpp

Also add an getValidShiftAmountConstant early-out to getValidMinimumShiftAmountConstant/getValidMaximumShiftAmountConstant so we can use them for scalar cases as well.




More information about the All-commits mailing list