https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/138676
>From dedd3209ffec0129ff862ff8808eacbf13c15688 Mon Sep 17 00:00:00 2001 From: Matt Arsenault <matthew.arsena...@amd.com> Date: Tue, 6 May 2025 12:06:17 +0200 Subject: [PATCH] IR: Remove redundant UseList check in addUse Not sure if this did anything for compile time or not. --- llvm/include/llvm/IR/Value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h index 241b9e2860c4c..c276899e673a3 100644 --- a/llvm/include/llvm/IR/Value.h +++ b/llvm/include/llvm/IR/Value.h @@ -509,7 +509,7 @@ class Value { /// This method should only be used by the Use class. void addUse(Use &U) { - if (UseList || hasUseList()) + if (hasUseList()) U.addToList(&UseList); } _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits