[all-commits] [llvm/llvm-project] fcdf81: [KnownBits] Add KnownBits::absdiff to compute the ...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Fri Mar 1 11:24:38 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fcdf818a7779871990214cc1035bb2c36426f459
https://github.com/llvm/llvm-project/commit/fcdf818a7779871990214cc1035bb2c36426f459
Author: Simon Pilgrim <RKSimon at users.noreply.github.com>
Date: 2024-03-01 (Fri, 01 Mar 2024)
Changed paths:
M llvm/include/llvm/Support/KnownBits.h
M llvm/lib/Support/KnownBits.cpp
M llvm/unittests/Support/KnownBitsTest.cpp
Log Message:
-----------
[KnownBits] Add KnownBits::absdiff to compute the absolute difference of 2 unsigned values (#82354)
Equivalent to "umax(A, B) - umin(A, B)"
This is just an initial correctness implementation, hopefully we can make this optimal in the future.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list