Switch BBVectorize to directly depend on having a TTI analysis.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 7 Jan 2013 10:22:36 +0000 (10:22 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 7 Jan 2013 10:22:36 +0000 (10:22 +0000)
commit8bd6c52396ab6e7955fdcc1bce099b7cba29a308
treefd8f9f08d9f5aa0bd87ee81e99ad15786060ed03
parent0c63e64af6b2b25f44e33dcdf0b42968cbd0a581
Switch BBVectorize to directly depend on having a TTI analysis.

This could be simplified further, but Hal has a specific feature for
ignoring TTI, and so I preserved that.

Also, I needed to use it because a number of tests fail when switching
from a null TTI to the NoTTI nonce implementation. That seems suspicious
to me and so may be something that you need to look into Hal. I worked
it by preserving the old behavior for these tests with the flag that
ignores all target info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171722 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/BBVectorize.cpp
test/Transforms/BBVectorize/cycle.ll
test/Transforms/BBVectorize/ld1.ll
test/Transforms/BBVectorize/loop1.ll
test/Transforms/BBVectorize/req-depth.ll
test/Transforms/BBVectorize/search-limit.ll
test/Transforms/BBVectorize/simple-int.ll
test/Transforms/BBVectorize/simple-ldstr.ll
test/Transforms/BBVectorize/simple-sel.ll
test/Transforms/BBVectorize/simple.ll
test/Transforms/BBVectorize/simple3.ll