3
ispc.cpp
3
ispc.cpp
@@ -1020,13 +1020,14 @@ Target::Target(const char *arch, const char *cpu, const char *isa, bool pic, boo
|
|||||||
#endif
|
#endif
|
||||||
if (g->opt.disableFMA == false)
|
if (g->opt.disableFMA == false)
|
||||||
options.AllowFPOpFusion = llvm::FPOpFusion::Fast;
|
options.AllowFPOpFusion = llvm::FPOpFusion::Fast;
|
||||||
|
#if defined(LLVM_3_2) || defined(LLVM_3_3) || defined(LLVM_3_4) || defined(LLVM_3_5) || defined(LLVM_3_6)
|
||||||
#ifdef ISPC_IS_WINDOWS
|
#ifdef ISPC_IS_WINDOWS
|
||||||
if (strcmp("x86", arch) == 0) {
|
if (strcmp("x86", arch) == 0) {
|
||||||
// Workaround for issue #503 (LLVM issue 14646).
|
// Workaround for issue #503 (LLVM issue 14646).
|
||||||
// It's Win32 specific.
|
// It's Win32 specific.
|
||||||
options.NoFramePointerElim = true;
|
options.NoFramePointerElim = true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
m_targetMachine =
|
m_targetMachine =
|
||||||
m_target->createTargetMachine(triple, m_cpu, featuresString, options,
|
m_target->createTargetMachine(triple, m_cpu, featuresString, options,
|
||||||
|
|||||||
Reference in New Issue
Block a user