[all-commits] [llvm/llvm-project] cb79b5: [ConstantHoisting] simplify NumUses accounting NFC

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Wed Jul 12 09:54:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb79b5b571f628c1f30f8d8e5d73bb6efc5c36d4
      https://github.com/llvm/llvm-project/commit/cb79b5b571f628c1f30f8d8e5d73bb6efc5c36d4
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstantHoisting.cpp

  Log Message:
  -----------
  [ConstantHoisting] simplify NumUses accounting NFC

The `Uses` variable is unnecessary. Just use `UsesNum` instead.

Reviewed By: MaskRay

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




More information about the All-commits mailing list