mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
clarify a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4a5498ab4
commit
65844fbd84
@ -610,6 +610,14 @@ pointer parameters for alias analysis. Some ideas:
|
||||
arguments when the function is inlined.
|
||||
|
||||
These functions can be inferred by various analysis passes such as the
|
||||
globalsmodrefaa pass.
|
||||
globalsmodrefaa pass. Note that getting #2 right is actually really tricky.
|
||||
Consider this code:
|
||||
|
||||
struct S; S G;
|
||||
void caller(S byvalarg) { G.field = 1; ... }
|
||||
void callee() { caller(G); }
|
||||
|
||||
The fact that the caller does not modify byval arg is not enough, we need
|
||||
to know that it doesn't modify G either. This is very tricky.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user