[all-commits] [llvm/llvm-project] ba1e04: [ConstantRange] Fix sdiv() with one bit values (PR...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 1 06:45:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba1e04b9668b3502362f2ee36232f5f56e72b4e2
      https://github.com/llvm/llvm-project/commit/ba1e04b9668b3502362f2ee36232f5f56e72b4e2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-07-01 (Fri, 01 Jul 2022)

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

  Log Message:
  -----------
  [ConstantRange] Fix sdiv() with one bit values (PR56333)

Signed one bit values can only be -1 or 0, not positive. The code
was interpreting the 1 as -1 and intersecting with a full range
rather than an empty one.

Fixes https://github.com/llvm/llvm-project/issues/56333.




More information about the All-commits mailing list