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)
commitf8326b605245e10438ceaa8da23109e3fa077482
treec6c941eec0b6d4fa39ab50d03a7fa185154417b9
parenta7714a0ff986950eb42bd2417486d58ab4620d78
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).

llvm-svn: 167743
llvm/lib/Transforms/Vectorize/BBVectorize.cpp
llvm/test/Transforms/BBVectorize/X86/cmp-types.ll [new file with mode: 0644]