[LAA-memchecks 1/3] Split out NumComparisons checks. NFC
authorAdam Nemet <anemet@apple.com>
Tue, 10 Mar 2015 18:54:19 +0000 (18:54 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 10 Mar 2015 18:54:19 +0000 (18:54 +0000)
commitb6dc76ffe5c80a51ebb32e964b9d704c58ae170e
tree431409fa11f5a6a1745b88d71b94d4cfff82a966
parentec571f2060cdb9ee87b8ed263a3924022a34dce3
[LAA-memchecks 1/3] Split out NumComparisons checks. NFC

The check for the number of memchecks will be moved to the client of
this analysis.  Besides allowing for transform-specific thresholds, this
also lets Loop Distribution post-process the memchecks; Loop
Distribution only needs memchecks between pointers of different
partitions.

The motivation for this first patch is to untangle the CanDoRT check
from the NumComparison check before moving the NumComparison part.
CanDoRT means that we couldn't determine the bounds for the pointer.
Note that NumComparison is set independent of this flag.

llvm-svn: 231816
llvm/lib/Analysis/LoopAccessAnalysis.cpp