[all-commits] [llvm/llvm-project] bd6625: [ConstantRange] Test 1 bit ranges in exhaustive te...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Jan 9 07:57:33 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd66251864acea7a0ffdce58f34bd78c30e014ad
      https://github.com/llvm/llvm-project/commit/bd66251864acea7a0ffdce58f34bd78c30e014ad
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-01-09 (Mon, 09 Jan 2023)

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

  Log Message:
  -----------
  [ConstantRange] Test 1 bit ranges in exhaustive tests (NFC)

There have been multiple cases where range calculations were wrong
in the 1 bit case. Make sure we catch these by not specifying the
bit width explicitly, and letting the test framework pick it (which
will now always test 1 and 4 bits both).




More information about the All-commits mailing list