Fix the ComplexDeinterleaving bug when handling mixed reductions.
authorIgor Kirillov <igor.kirillov@arm.com>
Tue, 27 Jun 2023 12:33:49 +0000 (12:33 +0000)
committerIgor Kirillov <igor.kirillov@arm.com>
Tue, 27 Jun 2023 14:40:49 +0000 (14:40 +0000)
commit1fce8df53a30182f2125c5e0986f9506481778f7
tree23d380638097ff6d4b1d6d8b53e2cf97820e9378
parent474ec694191a51d7f30a11f8b03dee911c8ef346
Fix the ComplexDeinterleaving bug when handling mixed reductions.

Add a missing check that ensures that ComplexDeinterleaving for reduction
is only analyzed for Real and Imaginary Instructions of the same type.

Differential Revision: https://reviews.llvm.org/D153862
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
llvm/test/CodeGen/AArch64/complex-deinterleaving-reductions-scalable.ll