[all-commits] [llvm/llvm-project] 613344: [GVN] Restore the NumGVNInstr metric (#182380)

Alan Zhao via All-commits all-commits at lists.llvm.org
Thu Feb 19 16:25:22 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 613344a7f9721959ce43a17686e2f1221de8d785
      https://github.com/llvm/llvm-project/commit/613344a7f9721959ce43a17686e2f1221de8d785
  Author: Alan Zhao <ayzhao at google.com>
  Date:   2026-02-20 (Fri, 20 Feb 2026)

  Changed paths:
    M llvm/lib/Transforms/Scalar/GVN.cpp
    A llvm/test/Transforms/GVN/basic-stats.ll

  Log Message:
  -----------
  [GVN] Restore the NumGVNInstr metric (#182380)

The NumGVNInstr metric counts the number of instructions deleted by the
GVN pass. #131753 changed where the instructions were deleted in the
pass, but that PR did not update the NumGVNInstr metric whenever
instructions were deleted. This PR fixes that bug by updating
NumGVNInstr whenever `removeInstruction(...)` is called.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list