aboutsummaryrefslogtreecommitdiffstats
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
commit3323f2abbdfd2978f05d5260c63504c2325e76f0 (patch)
tree84c5549779b84eecc8446ed3f2de6e360f1b69e8
parentfdcc3acb7b82c57b4e59ed29264d094c79f2e3e2 (diff)
downloadexternal_llvm-3323f2abbdfd2978f05d5260c63504c2325e76f0.zip
external_llvm-3323f2abbdfd2978f05d5260c63504c2325e76f0.tar.gz
external_llvm-3323f2abbdfd2978f05d5260c63504c2325e76f0.tar.bz2
Split the DAE pass into DAE and DAH passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9742 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Transforms/IPO.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h
index 0a3f0a4..62ed93c 100644
--- a/include/llvm/Transforms/IPO.h
+++ b/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