summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-26 18:48:07 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-26 18:48:07 +0000
commit05006e2813e3219a508d5261f3782ef47c08f762 (patch)
tree1065d2ac88745744f0712fcda47ce5e55d4a9512 /docs
parentcfa7fb6df5aaaf9e54fe97633167b44782224e45 (diff)
downloadllvm-05006e2813e3219a508d5261f3782ef47c08f762.tar.gz
llvm-05006e2813e3219a508d5261f3782ef47c08f762.tar.bz2
llvm-05006e2813e3219a508d5261f3782ef47c08f762.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109425 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/ReleaseNotes.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html
index 61aca32610..01a39a7ce0 100644
--- a/docs/ReleaseNotes.html
+++ b/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>