[all-commits] [llvm/llvm-project] 1dc1d5: [SimplifyLibCalls] Use KnownBits helper APIs (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Apr 6 07:01:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1dc1d5a0d2d5059736828c626e230520adf39392
      https://github.com/llvm/llvm-project/commit/1dc1d5a0d2d5059736828c626e230520adf39392
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-06 (Wed, 06 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp

  Log Message:
  -----------
  [SimplifyLibCalls] Use KnownBits helper APIs (NFC)

Use helper APIs for isNonNegative() and getMaxValue() instead of
flipping the zero value and having a long comment explaining why
that is necessary.




More information about the All-commits mailing list