diff options
author | Owen Anderson <resistor@mac.com> | 2008-04-29 00:38:34 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-04-29 00:38:34 +0000 |
commit | 0ff7708a5bbde331f9f54fb955bf7a2e96af710e (patch) | |
tree | 99b4d54e76881f2e71ed7dba83adb6495e19f4f4 /include/llvm/Transforms | |
parent | 8c2f662d849c42b7920930bba68a001ce26e0ed6 (diff) |
Add dead loop elimination, which removes dead loops for which we can compute
the trip count.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/Scalar.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index bcb791617b..2a50c37cb1 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -319,6 +319,13 @@ FunctionPass *createMemCpyOptPass(); //===----------------------------------------------------------------------===// // +// DeadLoopElimination - This pass performs DCE of non-infinite loops that it +// can prove are dead. +// +LoopPass *createDeadLoopEliminationPass(); + +//===----------------------------------------------------------------------===// +// // CodeGenPrepare - This pass prepares a function for instruction selection. // FunctionPass *createCodeGenPreparePass(const TargetLowering *TLI = 0); |