diff options
author | Anna Thomas <anna@azul.com> | 2021-07-26 21:39:18 -0400 |
---|---|---|
committer | Anna Thomas <anna@azul.com> | 2021-07-27 09:31:44 -0400 |
commit | 68ffed12b7e29c498e5b6d563a218f8710c46e61 (patch) | |
tree | 17f2f8e3740ac24bac71e4e804196f7702b51442 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | 796b84d26f4d461fb50e7b4e84e15a10eaca88fc (diff) | |
download | llvm-68ffed12b7e29c498e5b6d563a218f8710c46e61.zip llvm-68ffed12b7e29c498e5b6d563a218f8710c46e61.tar.gz llvm-68ffed12b7e29c498e5b6d563a218f8710c46e61.tar.bz2 |
[IVDescriptors] Fix bug in checkOrderedReduction
The Exit instruction passed in for checking if it's an ordered reduction need not be
an FPAdd operation. We need to bail out at that point instead of
assuming it is an FPAdd (and hence has two operands). See added testcase.
It crashes without the patch because the Exit instruction is a phi with
exactly one operand.
This latent bug was exposed by 95346ba which added support for
multi-exit loops for vectorization.
Reviewed-By: kmclaughlin
Differential Revision: https://reviews.llvm.org/D106843
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions