From 4542886e6a240aa2ca9b2b4cdf4e9b0d6fe60219 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 28 Nov 2013 12:26:26 -0800 Subject: do not run nacl atomics passes, we can leave them as-is --- lib/Transforms/NaCl/PNaClABISimplify.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Transforms/NaCl/PNaClABISimplify.cpp') diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp index d20a176468..c9fbc7df42 100644 --- a/lib/Transforms/NaCl/PNaClABISimplify.cpp +++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp @@ -114,7 +114,9 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) { // getelementptr instructions it creates. PM.add(createExpandGetElementPtrPass()); // Rewrite atomic and volatile instructions with intrinsic calls. +#if 0 // EMSCRIPTEN: we don't need to fix volatiles etc, and can use llvm intrinsics PM.add(createRewriteAtomicsPass()); +#endif // Remove ``asm("":::"memory")``. This must occur after rewriting // atomics: a ``fence seq_cst`` surrounded by ``asm("":::"memory")`` // has special meaning and is translated differently. -- cgit v1.2.3-70-g09d2