[PATCH] Call Type::isVectorTy() before calling Type::getVectorNumElements
Nadav Rotem
nrotem at apple.com
Wed Mar 27 17:53:37 PDT 2013
The change looks okay. Can you please format the patch and the test case in a single file and use the FileCheck tool for testing the test case ?
Thanks,
Nadav
On 03/27/13, Akira Hatanaka <ahatanak at gmail.com> wrote:
> The attached patch adds code in InstCombiner::FoldSelectOpOp that checks if a Type is a vector before calling function Type::getVectorNumElements.
> Without this fix, the following command asserts:
>
> $ opt instcombine1.ll -o instcombine1.bc -O3
>
>
>
> Please review.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130327/cbbd2a77/attachment.html>
More information about the llvm-commits
mailing list