summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-11 01:49:31 +0000
committerChris Lattner <sabre@nondot.org>2009-09-11 01:49:31 +0000
commitc608cb14a7e112901d44dce54f6128fe41d618c3 (patch)
tree1880cc13401c97f56a4d68ab46e9c536c9b0919a /docs
parent879caeadf3d5c60a3f5f8cb3262adb8d51c2b4a0 (diff)
downloadllvm-c608cb14a7e112901d44dce54f6128fe41d618c3.tar.gz
llvm-c608cb14a7e112901d44dce54f6128fe41d618c3.tar.bz2
llvm-c608cb14a7e112901d44dce54f6128fe41d618c3.tar.xz
more typos
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index b3e5813891..bdc9e17064 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -2021,7 +2021,7 @@ Classifications</a> </div>
Undefined values may be of any type (other than label or void) and be used
anywhere a constant is permitted.</p>
-<p>Undefined values are useful, because it indicates to the compiler that the
+<p>Undefined values are useful because they indicate to the compiler that the
program is well defined no matter what value is used. This gives the
compiler more freedom to optimize. Here are some examples of (potentially
surprising) transformations that are valid (in pseudo IR):</p>
@@ -2058,10 +2058,11 @@ Unsafe:
<p>These logical operations have bits that are not always affected by the input.
For example, if "%X" has a zero bit, then the output of the 'and' operation will
always be a zero, no matter what the corresponding bit from the undef is. As
-such, it is unsafe to optimizer or assume that the result of the and is undef.
-However, it is safe to assume that all bits of the undef are 0, and optimize the
-and to 0. Likewise, it is safe to assume that all the bits of the undef operand
-to the or could be set, allowing the or to be folded to -1.</p>
+such, it is unsafe to optimize or assume that the result of the and is undef.
+However, it is safe to assume that all bits of the undef could be 0, and
+optimize the and to 0. Likewise, it is safe to assume that all the bits of
+the undef operand to the or could be set, allowing the or to be folded to
+-1.</p>
<div class="doc_code">
<pre>