From 3509d6b56468a58d1220516fd123ed3e3a89ffa4 Mon Sep 17 00:00:00 2001 From: Michael Maitland Date: Mon, 30 Sep 2024 12:54:52 -0700 Subject: [PATCH] fixup! fix customIf --- llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp index 4aeb402042cf7f..edb6a522f190d8 100644 --- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp +++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp @@ -616,9 +616,11 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) Query.Types[0].getElementCount().divideCoefficientBy(8), 8); return std::pair(0, CastTy); }) - .customIf( - LegalityPredicates::any(typeIsLegalBoolVec(0, BoolVecTys, ST), - typeIsLegalIntOrFPVec(0, IntOrFPVecTys, ST))); + .customIf(LegalityPredicates::any( + all(typeIsLegalBoolVec(0, BoolVecTys, ST), + typeIsLegalBoolVec(1, BoolVecTys, ST)), + all(typeIsLegalIntOrFPVec(0, IntOrFPVecTys, ST), + typeIsLegalIntOrFPVec(1, IntOrFPVecTys, ST)))); getLegacyLegalizerInfo().computeTables(); }