summaryrefslogtreecommitdiffstats
path: root/llvm/docs/AdvancedGetElementPtr.html
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-02-18 18:22:18 +0000
committerDan Gohman <gohman@apple.com>2010-02-18 18:22:18 +0000
commit91b1289daad4f83345b1d195c9cf8433e458acc9 (patch)
tree6ea3a245e036375ddd73bcab731c136fbd6aa57e /llvm/docs/AdvancedGetElementPtr.html
parentf8b53536ed46ac6a4dfbac954753bbedc2e38ed6 (diff)
downloadbcm5719-llvm-91b1289daad4f83345b1d195c9cf8433e458acc9.tar.gz
bcm5719-llvm-91b1289daad4f83345b1d195c9cf8433e458acc9.zip
Clarify that the rules about object hopping kick in when a pointer is
deferenced, rather than when the pointer value is computed. llvm-svn: 96596
Diffstat (limited to 'llvm/docs/AdvancedGetElementPtr.html')
-rw-r--r--llvm/docs/AdvancedGetElementPtr.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/AdvancedGetElementPtr.html b/llvm/docs/AdvancedGetElementPtr.html
index 1e48bb33dbf..b5efe735538 100644
--- a/llvm/docs/AdvancedGetElementPtr.html
+++ b/llvm/docs/AdvancedGetElementPtr.html
@@ -44,10 +44,10 @@
where it doesn't do this. With GEP you can avoid this problem.
<p>Also, GEP carries additional pointer aliasing rules. It's invalid to take a
- GEP from one object and address into a different separately allocated
- object. IR producers (front-ends) must follow this rule, and consumers
- (optimizers, specifically alias analysis) benefit from being able to rely
- on it.</p>
+ GEP from one object, address into a different separately allocated
+ object, and deference it. IR producers (front-ends) must follow this rule,
+ and consumers (optimizers, specifically alias analysis) benefit from being
+ able to rely on it.</p>
<p>And, GEP is more concise in common cases.</p>
OpenPOWER on IntegriCloud