[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)
commitbff0ae772c748252e31f21150f374e2314e58569
tree25d4d1ec2438f2bdae97502944d5b6aad810cdfe
parent8d4fae3d8b695d0d55b258d27fb975f9fc72288d
[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.

llvm-svn: 219562
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp