[all-commits] [llvm/llvm-project] b7e235: Remove getNumUses() comparisons (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat May 2 02:05:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b7e2358220f26ee82e0e958f2d691d2f00341a0a
      https://github.com/llvm/llvm-project/commit/b7e2358220f26ee82e0e958f2d691d2f00341a0a
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-05-02 (Sat, 02 May 2020)

  Changed paths:
    M llvm/include/llvm/IR/AbstractCallSite.h
    M llvm/lib/IR/AbstractCallSite.cpp
    M llvm/lib/Transforms/Coroutines/CoroSplit.cpp
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp

  Log Message:
  -----------
  Remove getNumUses() comparisons (NFC)

getNumUses() scans the full use list. Don't use it is we only want
to check if there's zero or one uses.




More information about the All-commits mailing list