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
This commit is contained in:
Chris Lattner 2008-05-28 04:06:52 +00:00
parent 9b07d3d378
commit b0349bfe72

View File

@ -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);