diff options
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/BasicAliasAnalysis.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp index 76a1953..c3b032ab 100644 --- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp +++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp @@ -767,11 +767,7 @@ FunctionModRefBehavior BasicAAResult::getModRefBehavior(const CallBase *Call) { // If the call has operand bundles then aliasing attributes from the function // it calls do not directly apply to the call. This can be made more precise // in the future. - // - // If the call lives in a presplit coroutine, the readnone, writeonly, - // inaccessiblememonly and inaccessiblemem_or_argmemonly attribute from the - // function might not directly apply to the call. - if (!Call->hasOperandBundles() && !Call->getFunction()->isPresplitCoroutine()) + if (!Call->hasOperandBundles()) if (const Function *F = Call->getCalledFunction()) Min = FunctionModRefBehavior(Min & getBestAAResults().getModRefBehavior(F)); |