BBVectorize: Check the types of compare instructions
authorHal Finkel <hfinkel@anl.gov>
Mon, 12 Nov 2012 19:41:38 +0000 (19:41 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 12 Nov 2012 19:41:38 +0000 (19:41 +0000)
commit5094257518ea7b615d87ef5bea657625ffa81991
treedac2a646473ae7f67ee11bb74a85c4d3f0490bb3
parent9b5caaa9c452f262a52dd5ac7ebbc722da5a63de
BBVectorize: Check the types of compare instructions

The pass would previously assert when trying to compute the cost of
compare instructions with illegal vector types (like struct pointers).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167743 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/BBVectorize.cpp
test/Transforms/BBVectorize/X86/cmp-types.ll [new file with mode: 0644]