diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-27 22:44:59 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-27 22:44:59 +0000 |
| commit | 3b63bb375cf87883de72f964ee8fb11c1a6ac04f (patch) | |
| tree | 8976bcb753a7b0288d2169fb7042c7a3ce311955 /llvm/lib/Transforms | |
| parent | eb953f0ef83aca0f6d695584bc7c40b766708539 (diff) | |
| download | bcm5719-llvm-3b63bb375cf87883de72f964ee8fb11c1a6ac04f.tar.gz bcm5719-llvm-3b63bb375cf87883de72f964ee8fb11c1a6ac04f.zip | |
add a note about a way to improve this code further, that I won't be getting
to right now.
llvm-svn: 23485
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LowerInvoke.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerInvoke.cpp b/llvm/lib/Transforms/Scalar/LowerInvoke.cpp index 0f664e151f9..d74633b82b8 100644 --- a/llvm/lib/Transforms/Scalar/LowerInvoke.cpp +++ b/llvm/lib/Transforms/Scalar/LowerInvoke.cpp @@ -412,6 +412,14 @@ bool LowerInvoke::insertExpensiveEHSupport(Function &F) { NumInvokes += Invokes.size(); NumUnwinds += Unwinds.size(); + + // TODO: This is not an optimal way to do this. In particular, this always + // inserts setjmp calls into the entries of functions with invoke instructions + // even though there are possibly paths through the function that do not + // execute any invokes. In particular, for functions with early exits, e.g. + // the 'addMove' method in hexxagon, it would be nice to not have to do the + // setjmp stuff on the early exit path. This requires a bit of dataflow, but + // would not be too hard to do. // If we have an invoke instruction, insert a setjmp that dominates all // invokes. After the setjmp, use a cond branch that goes to the original |

