[llvm-commits] CVS: llvm/include/llvm/Transforms/Scalar.h

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 9 22:11:11 PST 2003


Changes in directory llvm/include/llvm/Transforms:

Scalar.h updated: 1.29 -> 1.30

---
Log message:

Move isCriticalEdge & SplitCritical edge out of this file, which is only
for passes.


---
Diffs of the changes:  (+1 -17)

Index: llvm/include/llvm/Transforms/Scalar.h
diff -u llvm/include/llvm/Transforms/Scalar.h:1.29 llvm/include/llvm/Transforms/Scalar.h:1.30
--- llvm/include/llvm/Transforms/Scalar.h:1.29	Fri Nov  7 11:19:39 2003
+++ llvm/include/llvm/Transforms/Scalar.h	Sun Nov  9 22:09:44 2003
@@ -216,26 +216,10 @@
 //   AU.addRequiredID(BreakCriticalEdgesID);
 //
 // This pass obviously invalidates the CFG, but can update forward dominator
-// (set, immediate dominators, and tree) information.
+// (set, immediate dominators, tree, and frontier) information.
 //
 Pass *createBreakCriticalEdgesPass();
 extern const PassInfo *BreakCriticalEdgesID;
-
-// The BreakCriticalEdges pass also exposes some low-level functionality that
-// may be used by other passes.
-
-/// isCriticalEdge - Return true if the specified edge is a critical edge.
-/// Critical edges are edges from a block with multiple successors to a block
-/// with multiple predecessors.
-///
-bool isCriticalEdge(const TerminatorInst *TI, unsigned SuccNum);
-
-/// SplitCriticalEdge - Insert a new node node to split the critical edge.  This
-/// will update DominatorSet, ImmediateDominator and DominatorTree information
-/// if a pass is specified, thus calling this pass will not invalidate these
-/// analyses.
-///
-void SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P = 0);
 
 //===----------------------------------------------------------------------===//
 //





More information about the llvm-commits mailing list