[llvm] [RISCV][GISEL] Legalize and regbankselect vector typed G_IMPLICIT_DEF (PR #84553)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 16:20:19 PDT 2024
================
@@ -351,6 +351,11 @@ RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
// $f10_d = COPY %1(s32)
if (anyUseOnlyUseFP(Dst, MRI, TRI))
Mapping = getFPValueMapping(MRI.getType(Dst).getSizeInBits());
+
+ LLT DstTy = MRI.getType(Dst);
----------------
topperc wrote:
Move the declaration of `LLT DstTy` earlier and use it on line 353 too.
https://github.com/llvm/llvm-project/pull/84553
More information about the llvm-commits
mailing list