OSDN Git Service

[InstCombine] Fixed bug introduced in r282237
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 26 Sep 2016 13:18:59 +0000 (13:18 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 26 Sep 2016 13:18:59 +0000 (13:18 +0000)
commit34552649e8185e5a5bf78d550bd41b2bea5724e6
tree323c80e8dded650ea8507838c1ecdf81a80d86e7
parent23d2e044928dce5d26dd514ef8a9751e19874d65
[InstCombine] Fixed bug introduced in r282237

The index of the new insertelement instruction was evaluated in the
wrong way, it was considered as the index of the inserted value instead
of index of the position, where the value should be inserted.

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