[llvm-commits] [llvm] r118687 - in /llvm/trunk: include/llvm/Analysis/AliasAnalysis.h lib/Transforms/IPO/FunctionAttrs.cpp
Duncan Sands
baldrick at free.fr
Wed Nov 10 10:00:05 PST 2010
Hi Dan,
> + /// onlyAccessesArgPointees - Return true if functions with the specified
> + /// behavior are known to read at most from objects pointed to by their
> + /// pointer-typed arguments (with arbitrary offsets).
can't they also write to objects pointed to by their arguments?
> + if (AliasAnalysis::onlyAccessesArgPointees(MRB)) {
> + // If the call does access argument pointees, check each argument.
> if (MRB& AliasAnalysis::AccessesArguments)
Is this second "if" redundant?
Ciao,
Duncan.
More information about the llvm-commits
mailing list