From: Adam Nemet Date: Wed, 19 Aug 2015 17:24:36 +0000 (+0000) Subject: [LAA] Comment how memchecks are codegened X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fc5268df60316c58b9eda09ac75a47dcf4debec5;p=oota-llvm.git [LAA] Comment how memchecks are codegened git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245465 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/LoopAccessAnalysis.cpp b/lib/Analysis/LoopAccessAnalysis.cpp index b931589ed04..41499df43cc 100644 --- a/lib/Analysis/LoopAccessAnalysis.cpp +++ b/lib/Analysis/LoopAccessAnalysis.cpp @@ -1668,6 +1668,8 @@ std::pair 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();