[PATCH] D27034: [AliasAnalysis] Teach BasicAA about memcpy.
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 24 20:31:04 PST 2016
reames requested changes to this revision.
reames added inline comments.
This revision now requires changes to proceed.
================
Comment at: lib/Analysis/BasicAliasAnalysis.cpp:773
}
+ if (auto *Inst = dyn_cast<MemCpyInst>(CS.getInstruction())) {
----------------
This entire change should be unnecessary. We have readonly and writeonly attributes with these semantics and the intrinsic should already be declared with them.
Reading further, it looks like you're change is mainly aimed at the no alias property right? If so, take a look at the noalias parameter attribute. It might be we've forgotten to tag the intrinsic correctly.
Repository:
rL LLVM
https://reviews.llvm.org/D27034
More information about the llvm-commits
mailing list