[llvm] [GlobalIsel] Combine G_EXTRACT_VECTOR_ELT (PR #85321)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 06:25:06 PDT 2024


================
@@ -4100,6 +4100,14 @@ void CombinerHelper::applyBuildFn(
   MI.eraseFromParent();
 }
 
+void CombinerHelper::applyBuildFnMO(const MachineOperand &MO,
+                                    BuildFnTy &MatchInfo) {
+  MachineInstr *Root = getDefIgnoringCopies(MO.getReg(), MRI);
+  Builder.setInstrAndDebugLoc(*Root);
----------------
tschuett wrote:

Rebasing made it end in https://github.com/llvm/llvm-project/pull/87115

https://github.com/llvm/llvm-project/pull/85321


More information about the llvm-commits mailing list