[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)
commit17c9aca8564235e939f23205839776f54082f8da
tree32aca5bdf0f7d6ce9e51e28d92b05d87ab1784a5
parent9677d4f3f37784db6b33c27bc112a776f807a12d
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231816 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LoopAccessAnalysis.cpp