[llvm] [RISC-V][GISEL] Select G_BITCAST for scalable vectors (PR #101486)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 14:40:05 PDT 2024
================
@@ -785,6 +786,26 @@ void RISCVInstructionSelector::preISelLower(MachineInstr &MI,
replacePtrWithInt(MI.getOperand(1), MIB, MRI);
MI.setDesc(TII.get(TargetOpcode::G_AND));
MRI.setType(DstReg, sXLen);
+ break;
+ }
+ case TargetOpcode::G_LOAD: {
----------------
michaelmaitland wrote:
We have a helper function called replacePtrWithInt. Maybe you can expand that to support vectors instead of doing it here in the code manually?
https://github.com/llvm/llvm-project/pull/101486
More information about the llvm-commits
mailing list