[SCEV] Fix one more caller blindly passing the latch to SCEV's
authorChandler Carruth <chandlerc@gmail.com>
Sat, 11 Oct 2014 05:28:30 +0000 (05:28 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 11 Oct 2014 05:28:30 +0000 (05:28 +0000)
commit0b0126955ab2c944599693644c5069e12c90463e
tree90bd92246ad7eb29ec4d1e8f8a0e32d911f7fe56
parentfade9f1d176883723252a98ef9a0e7fb997b6f20
[SCEV] Fix one more caller blindly passing the latch to SCEV's
getSmallConstantTripCount even when it isn't the exiting block.

I missed this in my first audit, very sorry. This was found in LNT and
elsewhere. I don't have a test case, but it was completely obvious from
inspection that this was the problem. I'll see if I can reduce a test
case, but I'm not really hopeful, and the value seems quite low.

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