]> granicus.if.org Git - llvm/commit
[InstCombine] icmp eq/ne (gep inbounds P, Idx..), null -> icmp eq/ne P, null for...
authorPhilip Reames <listmail@philipreames.com>
Mon, 26 Aug 2019 19:11:49 +0000 (19:11 +0000)
committerPhilip Reames <listmail@philipreames.com>
Mon, 26 Aug 2019 19:11:49 +0000 (19:11 +0000)
commitbcb37b91cc85eb67ebb247a6895f9bbf5a4b9ba5
tree529fb356f93d5c718aec858a777a3b90586a2d03
parent9d300e8c8ba0018bd21845a5e9bcf7899eb7be9b
[InstCombine] icmp eq/ne (gep inbounds P, Idx..), null -> icmp eq/ne P, null for vectors

Extend the transform introduced in https://reviews.llvm.org/D66608 to work for vector geps as well.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369949 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/gep-inbounds-null.ll