[all-commits] [llvm/llvm-project] 877cb9: [KnownBits] Make `{s, u}{add, sub}_sat` optimal (#11...

goldsteinn via All-commits all-commits at lists.llvm.org
Tue Nov 5 07:03:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 877cb9a2edc9057d70321e436e5ea8ccc1a87140
      https://github.com/llvm/llvm-project/commit/877cb9a2edc9057d70321e436e5ea8ccc1a87140
  Author: goldsteinn <35538541+goldsteinn at users.noreply.github.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    M llvm/lib/Support/KnownBits.cpp
    M llvm/test/Analysis/ValueTracking/knownbits-sat-addsub.ll
    M llvm/unittests/Support/KnownBitsTest.cpp

  Log Message:
  -----------
  [KnownBits] Make `{s,u}{add,sub}_sat` optimal (#113096)

Changes are:
    1) Make signed-overflow detection optimal
    2) For signed-overflow, try to rule out direction even if we can't
       totally rule out overflow.
    3) Intersect add/sub assuming no overflow with possible overflow
       clamping values as opposed to add/sub without the assumption.



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