[all-commits] [llvm/llvm-project] de059a: [NFC][ValueTracking] Remove calls to computeKnownB...

Dhruv Chawla via All-commits all-commits at lists.llvm.org
Wed Aug 16 10:23:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de059a2ea299845b3586d6b6e1b2441b65b1a556
      https://github.com/llvm/llvm-project/commit/de059a2ea299845b3586d6b6e1b2441b65b1a556
  Author: Dhruv Chawla <44582521+dc03 at users.noreply.github.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

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

  Log Message:
  -----------
  [NFC][ValueTracking] Remove calls to computeKnownBits for non-intrinsic CallInsts in isKnownNonZeroFromOperator

For non-intrinsic CallInsts, computeKnownBits only handles range
metadata and checking getReturnedArgOperand(). Both of these are now
handled in isKnownNonZero, so there is no need to fall through to
a call to computeKnownBits anymore.

Differential Revision: https://reviews.llvm.org/D158095




More information about the All-commits mailing list