Split the DAE pass into DAE and DAH passes
authorChris Lattner <sabre@nondot.org>
Wed, 5 Nov 2003 21:43:42 +0000 (21:43 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 5 Nov 2003 21:43:42 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9742 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/IPO.h

index 0a3f0a48d983a65c61c07ebfd0c32d126fba5400..62ed93c5bbf61995743a6fe11132a6f1a6e95084 100644 (file)
@@ -97,12 +97,13 @@ Pass *createInternalizePass();
 
 //===----------------------------------------------------------------------===//
 // 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