[PATCH] D155958: [NFC][ValueTracking]: Remove redundant computeKnownBits call for LoadInst in isKnownNonZero

Dhruv Chawla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 21 08:13:40 PDT 2023


0xdc03 added inline comments.


================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2547
     if (const auto *Call = dyn_cast<CallBase>(V)) {
       if (Call->isReturnNonNull())
         return true;
----------------
For that matter, I guess this could also be moved into the call instruction case?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155958/new/

https://reviews.llvm.org/D155958



More information about the llvm-commits mailing list