[llvm] [AArch64][GlobalISel] Legalize Insert vector element (PR #81453)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 02:58:53 PST 2024
================
@@ -2972,7 +2972,22 @@ bool IRTranslator::translateInsertElement(const User &U,
Register Res = getOrCreateVReg(U);
Register Val = getOrCreateVReg(*U.getOperand(0));
Register Elt = getOrCreateVReg(*U.getOperand(1));
- Register Idx = getOrCreateVReg(*U.getOperand(2));
+ const auto &TLI = *MF->getSubtarget().getTargetLowering();
----------------
arsenm wrote:
the TargetLowering should probably be an IRTranslator member if it isn't already
https://github.com/llvm/llvm-project/pull/81453
More information about the llvm-commits
mailing list