From b0349bfe72af000c2e518761749502e6c0366cd1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 May 2008 04:06:52 +0000 Subject: [PATCH] loads should get chains. THis helps but does not solve CodeGen/Generic/2003-05-27-phifcmpd.ll on ia64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51633 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/IA64/IA64ISelDAGToDAG.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Target/IA64/IA64ISelDAGToDAG.cpp b/lib/Target/IA64/IA64ISelDAGToDAG.cpp index 93ff8b426e5..805879c8b11 100644 --- a/lib/Target/IA64/IA64ISelDAGToDAG.cpp +++ b/lib/Target/IA64/IA64ISelDAGToDAG.cpp @@ -348,7 +348,8 @@ SDNode *IA64DAGToDAGISel::Select(SDOperand Op) { // load the branch target's entry point [mem] and // GP value [mem+8] SDOperand targetEntryPoint= - SDOperand(CurDAG->getTargetNode(IA64::LD8, MVT::i64, FnDescriptor), 0); + SDOperand(CurDAG->getTargetNode(IA64::LD8, MVT::i64, MVT::Other, + FnDescriptor), 0); Chain = targetEntryPoint.getValue(1); SDOperand targetGPAddr= SDOperand(CurDAG->getTargetNode(IA64::ADDS, MVT::i64, @@ -356,7 +357,8 @@ SDNode *IA64DAGToDAGISel::Select(SDOperand Op) { CurDAG->getConstant(8, MVT::i64)), 0); Chain = targetGPAddr.getValue(1); SDOperand targetGP = - SDOperand(CurDAG->getTargetNode(IA64::LD8, MVT::i64, targetGPAddr), 0); + SDOperand(CurDAG->getTargetNode(IA64::LD8, MVT::i64,MVT::Other, + targetGPAddr), 0); Chain = targetGP.getValue(1); Chain = CurDAG->getCopyToReg(Chain, IA64::r1, targetGP, InFlag);