[llvm-commits] [llvm] r156973 - /llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp

Francois Pichet pichet2000 at gmail.com
Wed May 16 20:38:19 PDT 2012


Author: fpichet
Date: Wed May 16 22:38:19 2012
New Revision: 156973

URL: http://llvm.org/viewvc/llvm-project?rev=156973&view=rev
Log:
Fix the MSVC 2010 build: disable the optimizer for a problematic function.

Modified:
    llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp

Modified: llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp?rev=156973&r1=156972&r2=156973&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp Wed May 16 22:38:19 2012
@@ -466,6 +466,7 @@
   Sig.push_back(~0U);
 }
 
+#pragma optimize("",off) // MSVC 2010 optimizer can't deal with this function.
 
 static void EncodeFixedType(Record *R, SmallVectorImpl<unsigned> &Sig) {
   
@@ -531,6 +532,7 @@
   assert(VT != MVT::isVoid);
   EncodeFixedValueType(VT, Sig);
 }
+#pragma optimize("",on)
 
 /// ComputeFixedEncoding - If we can encode the type signature for this
 /// intrinsic into 32 bits, return it.  If not, return ~0U.





More information about the llvm-commits mailing list