OSDN Git Service

Fix reordering of shuffles and binary operations
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 12 May 2014 05:44:53 +0000 (05:44 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Mon, 12 May 2014 05:44:53 +0000 (05:44 +0000)
commit0795830269bf325c2b422c89a4725bc6a64654ec
tree208c1bae08d4d567bf6cfc0c8a59d816ee27a3da
parent8b6f7428b03c7423f1f748661666594c633c9109
Fix reordering of shuffles and binary operations

Do not apply transformation:

    BinOp(shuffle(v1), shuffle(v2)) -> shuffle(BinOp(v1, v2))

if operands v1 and v2 are of different size.
This change fixes PR19717, which was caused by r208488.

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