[all-commits] [llvm/llvm-project] 9707b9: [ConstantRange] Perform increment on APInt (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Sep 5 07:11:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9707b98e572adf34ef3e71bcf159dae08e654fd8
      https://github.com/llvm/llvm-project/commit/9707b98e572adf34ef3e71bcf159dae08e654fd8
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-09-05 (Thu, 05 Sep 2024)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/IR/ConstantRange.cpp

  Log Message:
  -----------
  [ConstantRange] Perform increment on APInt (NFC)

This handles the edge case where BitWidth is 1 and doing the
increment gets a value that's not valid in that width, while we
just want wrap-around.

Split out of https://github.com/llvm/llvm-project/pull/80309.


  Commit: 9e85efb0dec8e78ca69925a05c0bbba211dee507
      https://github.com/llvm/llvm-project/commit/9e85efb0dec8e78ca69925a05c0bbba211dee507
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-09-05 (Thu, 05 Sep 2024)

  Changed paths:
    M llvm/unittests/IR/ConstantRangeTest.cpp

  Log Message:
  -----------
  [ConstantRangeTest] Set APInt signed flags where needed (NFC)

Split out from https://github.com/llvm/llvm-project/pull/80309 to
avoid assertion failures in the future.


Compare: https://github.com/llvm/llvm-project/compare/233ed51cf53d...9e85efb0dec8

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