[llvm] llvm-reduce: Use isCallee helper (PR #133419)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 28 04:03:55 PDT 2025
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/133419
None
>From d4e67aa1edd97e7881b6c087822bf6c86685073a Mon Sep 17 00:00:00 2001
From: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: Fri, 28 Mar 2025 17:38:45 +0700
Subject: [PATCH] llvm-reduce: Use isCallee helper
---
llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp b/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
index 1763feedcdbc3..2a9d40d8c3c59 100644
--- a/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
+++ b/llvm/tools/llvm-reduce/deltas/ReduceOperandsSkip.cpp
@@ -52,7 +52,7 @@ static bool shouldReduceOperand(Use &Op) {
if (isa<GEPOperator>(Op.getUser()))
return false;
if (auto *CB = dyn_cast<CallBase>(Op.getUser())) {
- if (&CB->getCalledOperandUse() == &Op)
+ if (CB->isCallee(&Op))
return false;
}
return true;
More information about the llvm-commits
mailing list