[LAA] Comment how memchecks are codegened

llvm-svn: 245465
This commit is contained in:
Adam Nemet 2015-08-19 17:24:36 +00:00
parent 9832a30abc
commit 2568349cb6

View File

@ -1668,6 +1668,8 @@ std::pair<Instruction *, Instruction *> LoopAccessInfo::addRuntimeChecks(
for (const auto &Check : ExpandedChecks) {
const PointerBounds &A = Check.first, &B = Check.second;
// Check if two pointers (A and B) conflict where conflict is computed as:
// start(A) <= end(B) && start(B) <= end(A)
unsigned AS0 = A.Start->getType()->getPointerAddressSpace();
unsigned AS1 = B.Start->getType()->getPointerAddressSpace();