Fix type of shuffle obtained from reordering with binary operation
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 12 May 2014 10:11:27 +0000 (10:11 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Mon, 12 May 2014 10:11:27 +0000 (10:11 +0000)
commitb1a6b91a1e833fcccae5d2c367f5dd29d4ea6fdd
tree169db97dae1a249d816b9db049ee16fc122fdc57
parentf1e04540f67e686ef1b1cf858e64797500a4012d
Fix type of shuffle obtained from reordering with binary operation

In transformation:
    BinOp(shuffle(v1,undef), shuffle(v2,undef)) -> shuffle(BinOp(v1, v2),undef)
type of the undef argument must be same as type of BinOp.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208531 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/vec_shuffle.ll