mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 08:46:37 +00:00
Clarify that the rules about object hopping kick in when a pointer is
deferenced, rather than when the pointer value is computed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf3d08445d
commit
48f6a3175a
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user