[llvm-commits] [llvm] r60975 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Mon P Wang wangmp at apple.com
Sat Dec 13 00:16:43 PST 2008


Author: wangmp
Date: Sat Dec 13 02:16:43 2008
New Revision: 60975

URL: http://llvm.org/viewvc/llvm-project?rev=60975&view=rev
Log:
Remove assertion to allow promotion of a truncating store operand

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp?rev=60975&r1=60974&r2=60975&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp Sat Dec 13 02:16:43 2008
@@ -969,8 +969,6 @@
 
   SDValue Val = GetPromotedInteger(N->getValue());  // Get promoted value.
 
-  assert(!N->isTruncatingStore() && "Cannot promote this store operand!");
-
   // Truncate the value and store the result.
   return DAG.getTruncStore(Ch, Val, Ptr, N->getSrcValue(),
                            SVOffset, N->getMemoryVT(),





More information about the llvm-commits mailing list