[llvm] f43daf1 - [SSAUpdater] Remove unused code InstrIsPHI (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 1 12:45:56 PST 2021
Author: Kazu Hirata
Date: 2021-01-01T12:44:52-08:00
New Revision: f43daf1b62af25d066893af02b4f67b9b8dd524e
URL: https://github.com/llvm/llvm-project/commit/f43daf1b62af25d066893af02b4f67b9b8dd524e
DIFF: https://github.com/llvm/llvm-project/commit/f43daf1b62af25d066893af02b4f67b9b8dd524e.diff
LOG: [SSAUpdater] Remove unused code InstrIsPHI (NFC)
The last use of this function was removed on Jan 4, 2018 in commit
commit 90ecac01e9dcbcaf92781a6dcffa07a27191b661.
Added:
Modified:
llvm/lib/Transforms/Utils/SSAUpdater.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/SSAUpdater.cpp b/llvm/lib/Transforms/Utils/SSAUpdater.cpp
index c3add49a7ccd..a80d577e29fb 100644
--- a/llvm/lib/Transforms/Utils/SSAUpdater.cpp
+++ b/llvm/lib/Transforms/Utils/SSAUpdater.cpp
@@ -282,12 +282,6 @@ class SSAUpdaterTraits<SSAUpdater> {
PHI->addIncoming(Val, Pred);
}
- /// InstrIsPHI - Check if an instruction is a PHI.
- ///
- static PHINode *InstrIsPHI(Instruction *I) {
- return dyn_cast<PHINode>(I);
- }
-
/// ValueIsPHI - Check if a value is a PHI.
static PHINode *ValueIsPHI(Value *Val, SSAUpdater *Updater) {
return dyn_cast<PHINode>(Val);
More information about the llvm-commits
mailing list