[all-commits] [llvm/llvm-project] ea7be2: [ConstantRange] Optimize smul_sat() (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Oct 27 12:01:25 PDT 2021


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

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

  Log Message:
  -----------
  [ConstantRange] Optimize smul_sat() (NFC)

Base the implementation on the APInt smul_sat() implementation,
which is much more efficient than performing calculations in
double the bitwidth.




More information about the All-commits mailing list