OSDN Git Service

Make SimplifyDemandedVectorElts simplify vectors with multiple
authorDan Gohman <gohman@apple.com>
Tue, 9 Sep 2008 18:11:14 +0000 (18:11 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 9 Sep 2008 18:11:14 +0000 (18:11 +0000)
commit488fbfc69e02c529ba7eeeb633a4e499fd6523c4
tree06ab3048c18fbea22ca1106d6f943f5607139c6b
parent0938f7424261cb99abaac4e5325487886e213dfb
Make SimplifyDemandedVectorElts simplify vectors with multiple
users, and teach it about shufflevector instructions.

Also, fix a subtle bug in SimplifyDemandedVectorElts'
insertelement code.

This is a patch that was originally written by Eli Friedman,
with some fixes and cleanup by me.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/pr2645.ll [new file with mode: 0644]