Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.295 -> 1.296 --- Log message: Constant fold bitconvert(undef) --- Diffs of the changes: (+2 -0) SelectionDAG.cpp | 2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.295 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.296 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.295 Sat Apr 1 20:51:27 2006 +++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Apr 3 20:02:22 2006 @@ -1167,6 +1167,8 @@ if (VT == Operand.getValueType()) return Operand; // noop conversion. if (OpOpcode == ISD::BIT_CONVERT) // bitconv(bitconv(x)) -> bitconv(x) return getNode(ISD::BIT_CONVERT, VT, Operand.getOperand(0)); + if (OpOpcode == ISD::UNDEF) + return getNode(ISD::UNDEF, VT); break; case ISD::SCALAR_TO_VECTOR: assert(MVT::isVector(VT) && !MVT::isVector(Operand.getValueType()) && _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits