Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.481 -> 1.482 --- Log message: Fix CodeGen/Generic/fpowi-promote.ll and PR1239: http://llvm.org/PR1239 --- Diffs of the changes: (+12 -0) LegalizeDAG.cpp | 12 ++++++++++++ 1 files changed, 12 insertions(+) Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.481 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.482 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.481 Sat Mar 3 13:21:38 2007 +++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sat Mar 3 17:43:21 2007 @@ -3328,6 +3328,18 @@ DAG.getValueType(VT)); break; + case ISD::FPOWI: { + // Promote f32 powi to f64 powi. Note that this could insert a libcall + // directly as well, which may be better. + Tmp1 = PromoteOp(Node->getOperand(0)); + assert(Tmp1.getValueType() == NVT); + Result = DAG.getNode(ISD::FPOWI, NVT, Tmp1, Node->getOperand(1)); + if (NoExcessFPPrecision) + Result = DAG.getNode(ISD::FP_ROUND_INREG, NVT, Result, + DAG.getValueType(VT)); + break; + } + case ISD::AND: case ISD::OR: case ISD::XOR: _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits