Author: baldrick Date: Fri Oct 19 08:05:40 2007 New Revision: 43174 URL: http://llvm.org/viewvc/llvm-project?rev=43174&view=rev Log: If the value types are equal then this routine asserts in later checks rather than producing the ordinary load it is supposed to. Avoid all such hassles by directly returning an ordinary load in this case.
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=43174&r1=43173&r2=43174&view=diff ============================================================================== --- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original) +++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Fri Oct 19 08:05:40 2007 @@ -2340,7 +2340,7 @@ // If they are asking for an extending load from/to the same thing, return a // normal load. if (VT == EVT) - ExtType = ISD::NON_EXTLOAD; + return getLoad(VT, Chain, Ptr, SV, SVOffset, isVolatile, Alignment); if (MVT::isVector(VT)) assert(EVT == MVT::getVectorElementType(VT) && "Invalid vector extload!"); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits