[PATCH] D29989: [BasicAA] Take attributes into account when requesting modref info for a call site

Daniel Berlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 09:46:58 PST 2017


dberlin added inline comments.


================
Comment at: lib/Analysis/BasicAliasAnalysis.cpp:786
+      if (CS.onlyReadsMemory(OperandNo)) {
+        Result = static_cast<ModRefInfo>(Result | MRI_Ref);
+        continue;
----------------
Can you explain why you need static casts here and below?



https://reviews.llvm.org/D29989





More information about the llvm-commits mailing list