diff options
author | Dan Gohman <sunfish@google.com> | 2014-02-13 19:03:13 -0800 |
---|---|---|
committer | Dan Gohman <sunfish@google.com> | 2014-02-14 11:38:16 -0800 |
commit | 3b35f56469fb3a5b15fc0fc77e51c9603b1f9c24 (patch) | |
tree | 16354a3fe7e63e76ef9089ca26380cdc52eb4a81 | |
parent | 8e79a39877f2127481a0c31b8c310353330daeae (diff) |
Disable two PNaCl passes which the JSBackend no longer needs.
-rw-r--r-- | lib/Transforms/NaCl/PNaClABISimplify.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp index 1cde8897f2..2b7ff9ca5d 100644 --- a/lib/Transforms/NaCl/PNaClABISimplify.cpp +++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp @@ -106,9 +106,11 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) { // This pass converts those arguments to 32-bit. PM.add(createCanonicalizeMemIntrinsicsPass()); +#if 0 // XXX EMSCRIPTEN: PNaCl strips metadata to avoid making it ABI-exposed; empscripten doesn't need this. // We place StripMetadata after optimization passes because // optimizations depend on the metadata. PM.add(createStripMetadataPass()); +#endif // FlattenGlobals introduces ConstantExpr bitcasts of globals which // are expanded out later. @@ -131,9 +133,11 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) { // atomics: a ``fence seq_cst`` surrounded by ``asm("":::"memory")`` // has special meaning and is translated differently. PM.add(createRemoveAsmMemoryPass()); +#if 0 // XXX EMSCRIPTEN: PNaCl replaces pointers with ints to simplify their ABI; empscripten doesn't need this. // ReplacePtrsWithInts assumes that getelementptr instructions and // ConstantExprs have already been expanded out. PM.add(createReplacePtrsWithIntsPass()); +#endif // We place StripAttributes after optimization passes because many // analyses add attributes to reflect their results. |