diff options
author | Jesper Antonsson <jesper.antonsson@ericsson.com> | 2018-10-01 14:59:25 +0000 |
---|---|---|
committer | Jesper Antonsson <jesper.antonsson@ericsson.com> | 2018-10-01 14:59:25 +0000 |
commit | c954b86391c6229247cca9d28237e3fece4c36fa (patch) | |
tree | 2979a8097dcb8548fcad45bf300f1bf3081f6993 /lldb/packages/Python/lldbsuite/test/python_api | |
parent | 1ea206be73202c1f951f554080dab7e096475b3a (diff) | |
download | bcm5719-llvm-c954b86391c6229247cca9d28237e3fece4c36fa.tar.gz bcm5719-llvm-c954b86391c6229247cca9d28237e3fece4c36fa.zip |
[InstCombine] Handle vector compares in foldGEPIcmp(), take 2
Summary:
This is a continuation of the fix for PR34627 "InstCombine assertion at vector gep/icmp folding". (I just realized bugpoint had fuzzed the original test for me, so I had fixed another trigger of the same assert in adjacent code in InstCombine.)
This patch avoids optimizing an icmp (to look only at the base pointers) when the resulting icmp would have a different type.
The patch adds a testcase and also cleans up and shrinks the pre-existing test for the adjacent assert trigger.
Reviewers: lebedev.ri, majnemer, spatel
Reviewed By: lebedev.ri
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D52494
llvm-svn: 343486
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions