Displaying 1 result from an estimated 1 matches for "readsmemory".
2015 Dec 03
3
Function attributes for LibFunc and its impact on GlobalsAA
...rote:
>
>
>
>
>
>
> Hi,
>
> GlobalsAA, during propagation of mod-ref behavior in the call graph,
> looks at library functions (in GlobalsAAResult::AnalyzeCallGraph:
> F->isDeclaration() check), for attributes, and if the function does
> not have the onlyReadsMemory attribute set, forgets it.
>
>
>
> I noticed that library functions such as malloc/realloc do not have
> the attributes doesNotAccessMemory or onlyReadsMemory respectively
> set (FunctionAttrs.cpp). This leads to a loss of GlobalsAA
> information in the caller (and its calle...