From e52bc1d2bba794bfb004d35a395a2e3a8e69f9cb Mon Sep 17 00:00:00 2001 From: "Luo, Yuanke" Date: Sat, 12 Dec 2020 20:21:43 +0800 Subject: [PATCH] [X86] Add chain in ISel for x86_tdpbssd_internal intrinsic. --- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp index e0f54a2..5d197e4 100644 --- a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -4601,6 +4601,7 @@ void X86DAGToDAGISel::Select(SDNode *Node) { case Intrinsic::x86_tdpbssd_internal: { if (!Subtarget->hasAMXTILE()) break; + SDValue Chain = Node->getOperand(0); unsigned Opc = X86::PTDPBSSDV; SDValue CFG = CurDAG->getRegister(0, MVT::Untyped); SDValue Ops[] = {Node->getOperand(2), @@ -4609,7 +4610,8 @@ void X86DAGToDAGISel::Select(SDNode *Node) { Node->getOperand(5), Node->getOperand(6), Node->getOperand(7), - CFG}; + CFG, + Chain}; MachineSDNode *CNode = CurDAG->getMachineNode(Opc, dl, {MVT::v256i32, MVT::Other}, Ops); ReplaceNode(Node, CNode); -- 2.7.4