]> granicus.if.org Git - llvm/commit
[SLP] Fix crash after r358519, by V. Porpodas.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 24 Apr 2019 20:21:32 +0000 (20:21 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 24 Apr 2019 20:21:32 +0000 (20:21 +0000)
commite4f3b1f2203d2e7f7cd06f585d841832c9d265b1
tree8dc3d6d86d41c419aa3bd297a3945f02378c716d
parent3b06e633b7c97ed8fb68877ae2e96c21dd820f84
[SLP] Fix crash after r358519, by V. Porpodas.

Summary: The code did not check if operand was undef before casting it to Instruction.

Reviewers: RKSimon, ABataev, dtemirbulatov

Reviewed By: ABataev

Subscribers: uabelho

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359136 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/SLPVectorizer.cpp
test/Transforms/SLPVectorizer/X86/crash_reordering_undefs.ll [new file with mode: 0644]