[LoopVer] Optionally allow using memchecks from LAA
authorAdam Nemet <anemet@apple.com>
Wed, 12 Aug 2015 16:51:19 +0000 (16:51 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 12 Aug 2015 16:51:19 +0000 (16:51 +0000)
commita395eac8a8fbb95e7f4fe9055e769d02221130fe
tree144d18888a116643b1d20f822e7325b85218c68c
parentcbdd65c7954ff5df6a33f40251dcb1fe3d7eeaee
[LoopVer] Optionally allow using memchecks from LAA

r243382 changed the behavior to always require a set of memchecks to be
passed to LoopVer.  This change restores the prior behavior as an
alternative to the new behavior.  This allows the checks to be
implicitly taken from the LAA object.

Patch by Ashutosh Nema!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244763 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopAccessAnalysis.h
include/llvm/Transforms/Utils/LoopVersioning.h
lib/Transforms/Utils/LoopVersioning.cpp