though)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24152
91177308-0d34-0410-b5e6-
96231b3b80d8
* case ISD::DYNAMIC_STACKALLOC:
*/
case ISD::ConstantFP: {
* case ISD::DYNAMIC_STACKALLOC:
*/
case ISD::ConstantFP: {
+ SDOperand Chain = CurDAG->getEntryNode(); // this is a constant, so..
+
if (cast<ConstantFPSDNode>(N)->isExactlyValue(+0.0))
if (cast<ConstantFPSDNode>(N)->isExactlyValue(+0.0))
- return CurDAG->getRegister(IA64::F0, MVT::f64); // load 0.0
+ return CurDAG->getCopyFromReg(Chain, IA64::F0, MVT::f64);
else if (cast<ConstantFPSDNode>(N)->isExactlyValue(+1.0))
else if (cast<ConstantFPSDNode>(N)->isExactlyValue(+1.0))
- return CurDAG->getRegister(IA64::F1, MVT::f64); // load 1.0
+ return CurDAG->getCopyFromReg(Chain, IA64::F1, MVT::f64);
else
assert(0 && "Unexpected FP constant!");
}
else
assert(0 && "Unexpected FP constant!");
}