[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)
commitdfaeb33ec7dcef6389fa70af5d68006585ac8c65
tree0b00dca9d44f62af0c0f54018d8555ad67446c3a
parenteb2bd9a2699188bdc25f19631497bee77f0c5949
[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!

llvm-svn: 244763
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
llvm/include/llvm/Transforms/Utils/LoopVersioning.h
llvm/lib/Transforms/Utils/LoopVersioning.cpp