From 394fdfbda8433c0d654d4d50392562362ada127e Mon Sep 17 00:00:00 2001 From: Gabor Greif <ggreif@gmail.com> Date: Fri, 26 Mar 2010 19:35:48 +0000 Subject: [PATCH] fix formatting and a validation fail git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99640 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index b6c9a8793c2..a2d32d4e985 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -1960,12 +1960,12 @@ for (Value::use_iterator i = F->use_begin(), e = F->use_end(); i != e; ++i errs() << *Inst << "\n"; } </pre> -Note that dereferencing a <tt>Value::use_iterator</tt is not a very cheap +</div> + +Note that dereferencing a <tt>Value::use_iterator</tt> is not a very cheap operation. Instead of performing <tt>*i</tt> above several times, consider doing it only once in the loop body and reusing its result. -</div> - <p>Alternatively, it's common to have an instance of the <a href="/doxygen/classllvm_1_1User.html">User Class</a> and need to know what <tt>Value</tt>s are used by it. The list of all <tt>Value</tt>s used by a