diff options
author | Duncan Sands <baldrick@free.fr> | 2008-02-10 10:08:52 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2008-02-10 10:08:52 +0000 |
commit | d885dbdf9eb7a51ebb9a15a85921f27d8219997c (patch) | |
tree | abdd5cfa1ddaf7d13122ebe19d4d7913788271ad /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | a900d1758003091d935c4d1fb4a41f6c47878f52 (diff) |
Add truncate and AssertZext result expansion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 6c357d2507..bead077bf2 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2018,6 +2018,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, "Cannot *_EXTEND_INREG FP types"); assert(MVT::getSizeInBits(EVT) <= MVT::getSizeInBits(VT) && "Not extending!"); + if (VT == EVT) return N1; // noop assertion. break; } case ISD::SIGN_EXTEND_INREG: { |