Skip to content

Commit

Permalink
fixup! fix customIf
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmaitland committed Sep 30, 2024
1 parent fd57581 commit 3509d6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 3509d6b

Please sign in to comment.