[PATCH] D9401: llvm.noalias - The AA implementaton

Jeroen Dobbelaere via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 07:55:09 PDT 2016


jeroen.dobbelaere added inline comments.


================
Comment at: lib/Analysis/ScopedNoAliasAA.cpp:150-155
+  if (!mayAliasInScopes(CS1Scopes,
           CS2.getInstruction()->getMetadata(LLVMContext::MD_noalias)))
     return MRI_NoModRef;
 
-  if (!mayAliasInScopes(
-          CS2.getInstruction()->getMetadata(LLVMContext::MD_alias_scope),
+  if (!mayAliasInScopes(CS2Scopes,
           CS1.getInstruction()->getMetadata(LLVMContext::MD_noalias)))
----------------
Use CS2NoAlias and CS1NoAlias, in stead of CS2.getInstru.... and CS1.getInstru....



https://reviews.llvm.org/D9401





More information about the llvm-commits mailing list