summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-05 21:43:42 +0000
committerChris Lattner <sabre@nondot.org>2003-11-05 21:43:42 +0000
commita2e48a82fecba2810a2664fbcbe869639358b6e9 (patch)
treea333629f5ec63b39a907d8619c8d91629180287c
parent9e60aced2eac960a486c984b5a5f57aba572d850 (diff)
downloadbcm5719-llvm-a2e48a82fecba2810a2664fbcbe869639358b6e9.tar.gz
bcm5719-llvm-a2e48a82fecba2810a2664fbcbe869639358b6e9.zip
Split the DAE pass into DAE and DAH passes
llvm-svn: 9742
-rw-r--r--llvm/include/llvm/Transforms/IPO.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/include/llvm/Transforms/IPO.h b/llvm/include/llvm/Transforms/IPO.h
index 0a3f0a48d98..62ed93c5bbf 100644
--- a/llvm/include/llvm/Transforms/IPO.h
+++ b/llvm/include/llvm/Transforms/IPO.h
@@ -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
OpenPOWER on IntegriCloud