mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 05:00:39 +00:00
Re-instate the pragma optimize hack for MSVC, but not clang-cl
Reverts commit r230686 with define modifications. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230692 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
205a9a3aec
commit
138aa39eac
@ -292,6 +292,10 @@ static void EncodeFixedValueType(MVT::SimpleValueType VT,
|
||||
}
|
||||
}
|
||||
|
||||
#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) {
|
||||
|
||||
@ -377,6 +381,10 @@ static void EncodeFixedType(Record *R, std::vector<unsigned char> &ArgCodes,
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user