Fix IRBuilder CreateBitOrPointerCast for vector types
authorSilviu Baranga <silviu.baranga@arm.com>
Thu, 3 Sep 2015 11:36:39 +0000 (11:36 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Thu, 3 Sep 2015 11:36:39 +0000 (11:36 +0000)
commitdeae4ec251bf05937d30db527d1de6685e3f453d
treeeea6f649d0399f94100a608ce53caf2566cf9389
parent2467a4cad6dff6f9ea1337e1df32e9aaa37806a9
Fix IRBuilder CreateBitOrPointerCast for vector types

Summary:
This function was not taking into account that the
input type could be a vector, and wasn't properly
working for vector types.

This caused an assert when building spec2k6 perlbmk for armv8.

Reviewers: rengolin, mzolotukhin

Subscribers: silviu.baranga, mzolotukhin, rengolin, eugenis, jmolloy, aemerson, llvm-commits

Differential Revision: http://reviews.llvm.org/D12559

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246759 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IRBuilder.h
test/Transforms/LoopVectorize/ARM/vector_cast.ll [new file with mode: 0644]