I really didn't think this was necessary. But, Legalize wasn't running again

and legalizing the extload.  Strange.  Should fix most alpha regressions.

llvm-svn: 22329
This commit is contained in:
Andrew Lenharth 2005-07-02 20:58:53 +00:00
parent 64869f5d20
commit be3a74ca3e
1 changed files with 3 additions and 2 deletions

View File

@ -1351,8 +1351,9 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
DAG.getSrcValue(NULL));
else {
assert(Node->getValueType(0) == MVT::f64 && "Unexpected conversion");
FudgeInReg = DAG.getNode(ISD::EXTLOAD, MVT::f64, DAG.getEntryNode(),
CPIdx, DAG.getSrcValue(NULL), MVT::f32);
FudgeInReg =
LegalizeOp(DAG.getNode(ISD::EXTLOAD, MVT::f64, DAG.getEntryNode(),
CPIdx, DAG.getSrcValue(NULL), MVT::f32));
}
Result = DAG.getNode(ISD::ADD, Node->getValueType(0), Tmp1, FudgeInReg);
break;