[llvm] r285087 - Try removing an MSVC2010 workaround.

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 25 10:35:01 PDT 2016


Author: nico
Date: Tue Oct 25 12:35:00 2016
New Revision: 285087

URL: http://llvm.org/viewvc/llvm-project?rev=285087&view=rev
Log:
Try removing an MSVC2010 workaround.

Things seem to build fine locally without this, so let's
see what the bots think.

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=285087&r1=285086&r2=285087&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp Tue Oct 25 12:35:00 2016
@@ -250,10 +250,6 @@ static void EncodeFixedValueType(MVT::Si
   }
 }
 
-#if defined(_MSC_VER) && !defined(__clang__)
-#pragma optimize("",off) // MSVC 2010 optimizer can't deal with this function.
-#endif
-
 static void EncodeFixedType(Record *R, std::vector<unsigned char> &ArgCodes,
                             std::vector<unsigned char> &Sig) {
 
@@ -341,10 +337,6 @@ static void EncodeFixedType(Record *R, s
   EncodeFixedValueType(VT, Sig);
 }
 
-#if defined(_MSC_VER) && !defined(__clang__)
-#pragma optimize("",on)
-#endif
-
 /// ComputeFixedEncoding - If we can encode the type signature for this
 /// intrinsic into 32 bits, return it.  If not, return ~0U.
 static void ComputeFixedEncoding(const CodeGenIntrinsic &Int,




More information about the llvm-commits mailing list