[ConstantFolding] Handle bitcasts of undef fp vector elements
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 29 Jul 2016 18:48:27 +0000 (18:48 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 29 Jul 2016 18:48:27 +0000 (18:48 +0000)
commit718da3d1f6976a1bf89f960519ddab1316637c9a
tree1310bb56d926915ab2c88d2c68b4bfa485bec452
parent5207b5dcaea0971985a1229927a59166af83169b
[ConstantFolding] Handle bitcasts of undef fp vector elements

We used the wrong type for constructing a zero vector element which led
to type mismatches.

This fixes PR28771.

llvm-svn: 277197
llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Transforms/InstCombine/cast.ll