[LV] Split off memcheck block really at the first check
authorAdam Nemet <anemet@apple.com>
Tue, 3 Feb 2015 22:45:39 +0000 (22:45 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 3 Feb 2015 22:45:39 +0000 (22:45 +0000)
commit6daac09e80178e1d89fac5fc275e5081f28d8bd0
tree19728065a99d606d2421e0f96e8ba354c70bba28
parent2e49ac01a66ad0e7882944ab3024e1cf2d5a4c9a
[LV] Split off memcheck block really at the first check

I've noticed this while trying to move addRuntimeCheck to LoopAccessAnalysis.

I think that the intention was to early exit from the overflow checking before
the code for the memchecks.  This is the entire reason why we compute
FirstCheckInst but then we don't use that as the splitting instruction but the
final check.  Looks like an oversight.

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