OSDN Git Service

[ConstantFold] Support vector index when factoring out GEP index into preceding dimen...
authorHaicheng Wu <haicheng@codeaurora.org>
Mon, 4 Dec 2017 19:56:33 +0000 (19:56 +0000)
committerHaicheng Wu <haicheng@codeaurora.org>
Mon, 4 Dec 2017 19:56:33 +0000 (19:56 +0000)
commit15bf0436abba4974e68ec6eceab62e2fe3b358e4
tree831709be08efd8bf85c65f314a0ce7a4b7217e92
parentc965de5bf8b7c3d160a7524110dddaa5d10d85b9
[ConstantFold] Support vector index when factoring out GEP index into preceding dimensions

Follow-up of r316824. This patch supports the vector type for both current and
previous index when factoring out the current one into the previous one.

Differential Revision: https://reviews.llvm.org/D39556

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319683 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Assembler/getelementptr_vec_ce.ll
test/Transforms/InstCombine/gep-vector.ll
test/Transforms/InstSimplify/vector_gep.ll