diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-07-26 18:48:07 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-07-26 18:48:07 +0000 |
| commit | ed79dcb1ab323ef64faef0988bbb3a6892ea5716 (patch) | |
| tree | beeb9af089509deedef156f834e1010c51bc8d38 /llvm/docs | |
| parent | aa7f66ba6798ea946baa622b55679597dab60742 (diff) | |
| download | bcm5719-llvm-ed79dcb1ab323ef64faef0988bbb3a6892ea5716.tar.gz bcm5719-llvm-ed79dcb1ab323ef64faef0988bbb3a6892ea5716.zip | |
re-commit r109220, the compile error has already been fixed
Simplifying use_iterators by dereferencing
is not a good idea. The codebase does not depend
in this any more, and it may introduce hidden
runtime cost. If you get compile errors, please
dereference your iterator before passing to cast<>
(and friends).
Also: please consider caching the result of
operator* and reusing that instead of dereferencing
many times.
llvm-svn: 109425
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/ReleaseNotes.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/ReleaseNotes.html b/llvm/docs/ReleaseNotes.html index 61aca32610a..01a39a7ce07 100644 --- a/llvm/docs/ReleaseNotes.html +++ b/llvm/docs/ReleaseNotes.html @@ -318,6 +318,11 @@ expose new optimization opportunities:</p> To be portable across releases, resort to <tt>CallSite</tt> and the high-level accessors, such as <tt>getCalledValue</tt> and <tt>setUnwindDest</tt>. </li> +<li> + You can no longer pass use_iterators directly to cast<> (and similar), because + these routines tend to perform costly dereference operations more than once. You + have to dereference the iterators yourself and pass them in. +</li> </ul> |

