diff options
| author | Alon Zakai <alonzakai@gmail.com> | 2013-11-28 12:26:26 -0800 |
|---|---|---|
| committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-28 12:26:26 -0800 |
| commit | 4542886e6a240aa2ca9b2b4cdf4e9b0d6fe60219 (patch) | |
| tree | bf87849cbea22354e2d441d6321f19cf8b59e4e4 /lib/Transforms | |
| parent | eae4e43241c5b7f1e99fef89227c3f18400bfcfe (diff) | |
do not run nacl atomics passes, we can leave them as-is
Diffstat (limited to 'lib/Transforms')
| -rw-r--r-- | lib/Transforms/NaCl/PNaClABISimplify.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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. |
