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

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 5 15:44:01 PST 2003


Changes in directory llvm/include/llvm/Transforms:

IPO.h updated: 1.23 -> 1.24

---
Log message:

Split the DAE pass into DAE and DAH passes


---
Diffs of the changes:  (+6 -5)

Index: llvm/include/llvm/Transforms/IPO.h
diff -u llvm/include/llvm/Transforms/IPO.h:1.23 llvm/include/llvm/Transforms/IPO.h:1.24
--- llvm/include/llvm/Transforms/IPO.h:1.23	Thu Oct 23 11:51:49 2003
+++ llvm/include/llvm/Transforms/IPO.h	Wed Nov  5 15:43:42 2003
@@ -97,12 +97,13 @@
 
 //===----------------------------------------------------------------------===//
 // createDeadArgEliminationPass - This pass removes arguments from functions
-// which are not used by the body of the function.  If
-// DeleteFromExternalFunctions is true, the pass will modify functions that have
-// external linkage, which is not usually safe (this is used by bugpoint to
-// reduce testcases).
+// which are not used by the body of the function.
 //
-Pass *createDeadArgEliminationPass(bool DeleteFromExternalFunctions=false);
+Pass *createDeadArgEliminationPass();
+
+// DeadArgHacking pass - Same as DAE, but delete arguments of external functions
+// as well.  This is definately not safe, and should only be used by bugpoint.
+Pass *createDeadArgHackingPass();
 
 //===----------------------------------------------------------------------===//
 // createIPConstantPropagationPass - This pass propagates constants from call





More information about the llvm-commits mailing list