[InstCombine] Handle vector compares in foldGEPIcmp()
authorJesper Antonsson <jesper.antonsson@ericsson.com>
Thu, 20 Sep 2018 13:37:28 +0000 (13:37 +0000)
committerJesper Antonsson <jesper.antonsson@ericsson.com>
Thu, 20 Sep 2018 13:37:28 +0000 (13:37 +0000)
commit719fa055d0499e8f0e79ea579c2da1eb61dfa2f1
tree3c458a72a4c6eb31c2e2a2dbc5ac2c89854cfa0c
parent12ca74e5f0b3d88bd5824dd5252ec1bf887b2a2a
[InstCombine] Handle vector compares in foldGEPIcmp()

Summary:
This is to fix PR38984 "InstCombine assertion at vector gep/icmp folding":
https://bugs.llvm.org/show_bug.cgi?id=38984

Reviewers: majnemer, spatel, lattner, lebedev.ri

Reviewed By: lebedev.ri

Subscribers: lebedev.ri, llvm-commits

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

llvm-svn: 342647
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/pr38984.ll [new file with mode: 0644]