[llvm] 868e1fc - IR: Remove redundant UseList check in addUse (#138676)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 19 03:19:15 PDT 2025
Author: Matt Arsenault
Date: 2025-05-19T12:19:11+02:00
New Revision: 868e1fc1f9cdc6bd108e4873a21e194da272628f
URL: https://github.com/llvm/llvm-project/commit/868e1fc1f9cdc6bd108e4873a21e194da272628f
DIFF: https://github.com/llvm/llvm-project/commit/868e1fc1f9cdc6bd108e4873a21e194da272628f.diff
LOG: IR: Remove redundant UseList check in addUse (#138676)
Not sure if this did anything for compile time or not.
Added:
Modified:
llvm/include/llvm/IR/Value.h
Removed:
################################################################################
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);
}
More information about the llvm-commits
mailing list