[LV] Move addRuntimeCheck to LoopAccessAnalysis
authorAdam Nemet <anemet@apple.com>
Fri, 6 Feb 2015 18:31:04 +0000 (18:31 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 6 Feb 2015 18:31:04 +0000 (18:31 +0000)
commitb3189eac3fbededf540c3c0570c928971bca93a0
tree21c89c5f2ee5f7ec4fdf1fed06fc414dfaff6261
parent6dc42dd2daef95e115653065569b4693e1a9693f
[LV] Move addRuntimeCheck to LoopAccessAnalysis

This will allow it to be shared with the new Loop Distribution pass.

getFirstInst is currently duplicated across LoopVectorize.cpp and
LoopAccessAnalysis.cpp.  This is a short-term work-around until we figure out
a better solution.

NFC.  (The code moved is adjusted a bit for the name of the Loop member and
that PtrRtCheck is now a reference rather than a pointer.)

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