[LDist][LVer] Explicitly pass the set of memchecks to LoopVersioning, NFC
authorAdam Nemet <anemet@apple.com>
Tue, 28 Jul 2015 05:01:53 +0000 (05:01 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 28 Jul 2015 05:01:53 +0000 (05:01 +0000)
commitbd426c622e694f4d792ed1f2d916fffd17b69645
tree5839a1f7bbb185398f0a0920fb1318afa1600f7e
parent80458cb49cda721fa2873086ba0f3d86ded1af31
[LDist][LVer] Explicitly pass the set of memchecks to LoopVersioning, NFC

Before the patch, the checks were generated internally in
addRuntimeCheck.  Now, we use the new overloaded version of
addRuntimeCheck that takes the ready-made set of checks as a parameter.

The checks are now generated by the client (LoopDistribution) with the
new RuntimePointerChecking::generateChecks API.

Also the new printChecks API is used to print out the checks for
debugging.

This is to continue the transition over to the new model whereby clients
will get the full set of checks from LAA, filter it and then pass it to
LoopVersioning and in turn to addRuntimeCheck.

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