[all-commits] [llvm/llvm-project] 4dd392: [ConstantRange] Make shl() for negative LHS more p...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Aug 29 05:48:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4dd392fcd7847ef73233cd2f24623064ebc90a16
      https://github.com/llvm/llvm-project/commit/4dd392fcd7847ef73233cd2f24623064ebc90a16
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M llvm/lib/IR/ConstantRange.cpp
    M llvm/test/Transforms/SCCP/and-add-shl.ll
    M llvm/unittests/IR/ConstantRangeTest.cpp

  Log Message:
  -----------
  [ConstantRange] Make shl() for negative LHS more precise

This differs from the positive case in that shifting by a larger
amount makes the result smaller, not larger.




More information about the All-commits mailing list