HomePhabricator

[ConstantFold] Support vector index when factoring out GEP index into preceding…

Authored by haicheng on Dec 4 2017, 11:56 AM.

Description

[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

llvm-svn: 319683