]> granicus.if.org Git - llvm/commit
Merging r316824:
authorTom Stellard <tstellar@redhat.com>
Mon, 13 Nov 2017 22:26:54 +0000 (22:26 +0000)
committerTom Stellard <tstellar@redhat.com>
Mon, 13 Nov 2017 22:26:54 +0000 (22:26 +0000)
commit8baf891c0f1426d89835f878ba94cb198d93b155
tree32d3801f63e8c161aac4c7f59ba271e714e9dd01
parentf042b00be5f69c21b3fe846f7343dd44ed92a74e
Merging r316824:

------------------------------------------------------------------------
r316824 | haicheng | 2017-10-27 19:27:14 -0700 (Fri, 27 Oct 2017) | 7 lines

[ConstantFold] Fix a crash when folding a GEP that has vector index

LLVM crashes when factoring out an out-of-bound index into preceding dimension
and the preceding dimension uses vector index.  Simply bail out now when this
case happens.

Differential Revision: https://reviews.llvm.org/D38677
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@318096 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Transforms/InstCombine/gep-vector.ll