From f789f29aaade98dffd4eaf0ea8deb1b73e808767 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 29 May 2003 15:12:27 +0000 Subject: Eliminate unnecessary ->get calls that are now automatically handled. llvm-svn: 6397 --- llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp') diff --git a/llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp b/llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp index 63a0cdf0899..705a9449db7 100644 --- a/llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp +++ b/llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp @@ -15,15 +15,13 @@ // The MemoryDepAnalysis does build an explicit graph, which is used internally // here. That graph could be augmented with the other dependences above if // desired, but for most uses there will be little need to do that. +// //===----------------------------------------------------------------------===// #include "llvm/Analysis/PgmDependenceGraph.h" #include "llvm/Analysis/MemoryDepAnalysis.h" #include "llvm/Analysis/PostDominators.h" #include "llvm/Function.h" -#include "llvm/BasicBlock.h" -#include "llvm/Instruction.h" - //---------------------------------------------------------------------------- @@ -78,7 +76,7 @@ bool DepIterState::SetFirstSSADep() if (doIncomingDeps) for (Instruction::op_iterator E = depNode->getInstr().op_end(); ssaInEdgeIter != E && - (firstTarget = dyn_cast(ssaInEdgeIter->get()))== NULL; ) + (firstTarget = dyn_cast(ssaInEdgeIter))== NULL; ) ++ssaInEdgeIter; else for (Value::use_iterator E = depNode->getInstr().use_end(); -- cgit v1.2.3