[all-commits] [llvm/llvm-project] 73f76c: [APInt] Add APIntOps::absdiff to compute the absol...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Feb 19 07:59:33 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73f76cda1f1acc496154c3acecc2e74b1280a9bd
      https://github.com/llvm/llvm-project/commit/73f76cda1f1acc496154c3acecc2e74b1280a9bd
  Author: Simon Pilgrim <RKSimon at users.noreply.github.com>
  Date:   2024-02-19 (Mon, 19 Feb 2024)

  Changed paths:
    M llvm/include/llvm/ADT/APInt.h
    M llvm/unittests/ADT/APIntTest.cpp

  Log Message:
  -----------
  [APInt] Add APIntOps::absdiff to compute the absolute difference of 2 unsigned values (#82255)

Equivalent to "umax(A, B) - umin(A, B)"

First step towards adding knownbits support for absdiff patterns for #81765



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