[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Apr 3 18:02:35 PDT 2006
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()) &&
More information about the llvm-commits
mailing list