[llvm-commits] CVS: llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 29 10:13:12 PDT 2003
Changes in directory llvm/lib/Analysis/IPA:
PgmDependenceGraph.cpp updated: 1.1 -> 1.2
---
Log message:
Eliminate unnecessary ->get calls that are now automatically handled.
---
Diffs of the changes:
Index: llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp
diff -u llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp:1.1 llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp:1.2
--- llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp:1.1 Sun Dec 8 08:13:19 2002
+++ llvm/lib/Analysis/IPA/PgmDependenceGraph.cpp Thu May 29 10:12:27 2003
@@ -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 @@
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();
More information about the llvm-commits
mailing list