[all-commits] [llvm/llvm-project] 9a8564: [KnownBits] Combine abs() implementations

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Nov 13 13:24:11 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a85643cd357e412cff69067bb5c4840e228c2ab
      https://github.com/llvm/llvm-project/commit/9a85643cd357e412cff69067bb5c4840e228c2ab
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-11-13 (Fri, 13 Nov 2020)

  Changed paths:
    M llvm/include/llvm/Support/KnownBits.h
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Support/KnownBits.cpp
    M llvm/unittests/Support/KnownBitsTest.cpp

  Log Message:
  -----------
  [KnownBits] Combine abs() implementations

ValueTracking was using a more powerful abs() implementation. Roll
it into KnownBits::abs(). Also add an exhaustive test for abs(),
in both the poisoning and non-poisoning variants.




More information about the All-commits mailing list