[llvm-branch-commits] [llvm] e52bc1d - [X86] Add chain in ISel for x86_tdpbssd_internal intrinsic.

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Dec 12 05:19:30 PST 2020


Author: Luo, Yuanke
Date: 2020-12-12T21:14:38+08:00
New Revision: e52bc1d2bba794bfb004d35a395a2e3a8e69f9cb

URL: https://github.com/llvm/llvm-project/commit/e52bc1d2bba794bfb004d35a395a2e3a8e69f9cb
DIFF: https://github.com/llvm/llvm-project/commit/e52bc1d2bba794bfb004d35a395a2e3a8e69f9cb.diff

LOG: [X86] Add chain in ISel for x86_tdpbssd_internal intrinsic.

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86ISelDAGToDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp b/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
index e0f54a2f4c1f..5d197e4d5f76 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);


        


More information about the llvm-branch-commits mailing list