fix formatting and a validation fail

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif 2010-03-26 19:35:48 +00:00
parent 4de7368bf9
commit 394fdfbda8

View File

@ -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