summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-29 15:12:27 +0000
committerChris Lattner <sabre@nondot.org>2003-05-29 15:12:27 +0000
commitf789f29aaade98dffd4eaf0ea8deb1b73e808767 (patch)
tree15f52a371b50b3a7c3452d23589bf6defc1915e8 /llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp
parent530d4bffbfa2b8482511b0137144b8f02a9b0925 (diff)
downloadbcm5719-llvm-f789f29aaade98dffd4eaf0ea8deb1b73e808767.tar.gz
bcm5719-llvm-f789f29aaade98dffd4eaf0ea8deb1b73e808767.zip
Eliminate unnecessary ->get calls that are now automatically handled.
llvm-svn: 6397
Diffstat (limited to 'llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp6
1 files changed, 2 insertions, 4 deletions
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<Instruction>(ssaInEdgeIter->get()))== NULL; )
+ (firstTarget = dyn_cast<Instruction>(ssaInEdgeIter))== NULL; )
++ssaInEdgeIter;
else
for (Value::use_iterator E = depNode->getInstr().use_end();
OpenPOWER on IntegriCloud