[all-commits] [llvm/llvm-project] 587493: [ConstantRange] Compute precise shl range for sing...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Oct 15 14:45:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 587493b441ea87f132fec680933d3628050756b8
      https://github.com/llvm/llvm-project/commit/587493b441ea87f132fec680933d3628050756b8
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-10-15 (Fri, 15 Oct 2021)

  Changed paths:
    M llvm/lib/IR/ConstantRange.cpp
    M llvm/unittests/IR/ConstantRangeTest.cpp

  Log Message:
  -----------
  [ConstantRange] Compute precise shl range for single elements

For the common case where the shift amount is constant (a single
element range) we can easily compute a precise range (up to
unsigned envelope), so do that.




More information about the All-commits mailing list