[llvm] [ADT] Add APIntOps::abds signed absolute difference and rename absdiff -> abdu (PR #84791)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 09:51:32 PDT 2024
================
@@ -362,7 +362,7 @@ TEST(KnownBitsTest, BinaryExhaustive) {
return KnownBits::absdiff(Known1, Known2);
},
[](const APInt &N1, const APInt &N2) {
- return APIntOps::absdiff(N1, N2);
+ return APIntOps::abdu(N1, N2);
},
----------------
jayfoad wrote:
Do you need the lambda at all? Can the whole entry be just `APIntOps::abdu`?
https://github.com/llvm/llvm-project/pull/84791
More information about the llvm-commits
mailing list