diff options
author | Duncan Sands <baldrick@free.fr> | 2011-09-07 16:44:14 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2011-09-07 16:44:14 +0000 |
commit | 758ba1f4edfe2a2876c91022f921180a6dbece01 (patch) | |
tree | f5198473b91cad471e497168df96b7e8908453e5 /tools | |
parent | ffa5a763444e456cee17442af603fb4ef0843bb4 (diff) |
When inlining exception handling code into another function, ensure that
duplicate tests are eliminated (for example if the two functions both have
a catch clause catching the same type, ensure the redundant one is removed).
Note that it would probably be safe to say that eh.typeid.for is 'const',
but since two calls to it with the same argument can give different results
(but only if the calls are in different functions), it seems more correct to
mark it only 'pure'; this doesn't get in the way of the optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions