[llvm] Value: Remove redundant removeFromList in dropDroppableUse (PR #134580)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 6 22:08:38 PDT 2025
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/134580
The Use::set calls below will already try to unlink the use.
>From a73e79047408ab536645557a278dba2dc27c78df Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Mon, 7 Apr 2025 09:45:37 +0700
Subject: [PATCH] Value: Remove redundant removeFromList in dropDroppableUse
The Use::set calls below will already try to unlink the use.
---
llvm/lib/IR/Value.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index 2c41101ef56ff..2c7c0d3f91e14 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -215,7 +215,6 @@ void Value::dropDroppableUsesIn(User &Usr) {
}
void Value::dropDroppableUse(Use &U) {
- U.removeFromList();
if (auto *Assume = dyn_cast<AssumeInst>(U.getUser())) {
unsigned OpNo = U.getOperandNo();
if (OpNo == 0)
More information about the llvm-commits
mailing list