[llvm] [RISCV][GISEL] Legalize G_BITCAST for scalable vectors (PR #85970)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 10:09:25 PDT 2024
================
@@ -155,6 +155,13 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
getActionDefinitionsBuilder(G_BITREVERSE).maxScalar(0, sXLen).lower();
+ getActionDefinitionsBuilder(G_BITCAST).legalIf(
+ all(sameSize(0, 1),
----------------
topperc wrote:
If sameSize isn't true, the G_BITCAST is malformed. You don't need to check that.
https://github.com/llvm/llvm-project/pull/85970
More information about the llvm-commits
mailing list