[all-commits] [llvm/llvm-project] a69454: [KnownBits] Add operator==

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue May 17 00:39:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a694546f7cdf6fbcacddf229eeff5316e4bd0eae
      https://github.com/llvm/llvm-project/commit/a694546f7cdf6fbcacddf229eeff5316e4bd0eae
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-05-17 (Tue, 17 May 2022)

  Changed paths:
    M llvm/include/llvm/Support/KnownBits.h
    M llvm/lib/Support/KnownBits.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/unittests/IR/ConstantRangeTest.cpp
    M llvm/unittests/Support/KnownBitsTest.cpp

  Log Message:
  -----------
  [KnownBits] Add operator==

Checking whether two KnownBits are the same is somewhat common,
mainly in test code.

I don't think there is a lot of room for confusion with "determine
what the KnownBits for an icmp eq would be", as that has a
different result type (this is what the eq() method implements,
which returns Optional<bool>).

Differential Revision: https://reviews.llvm.org/D125692




More information about the All-commits mailing list