aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/NaCl/PNaClABISimplify.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-29 16:56:16 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-29 16:56:16 -0800
commit342f2193027ff267b5f24ebb6d2c9a16243c1558 (patch)
tree4e1557c985a28b84cc2ef5164756bf8b3db65a00 /lib/Transforms/NaCl/PNaClABISimplify.cpp
parent4545acff1c34d644a663953c3019ce4cf4df8bd1 (diff)
do not simplify varargs calls to jsargs emscripten intrinsics, that want normal js args to be passed, and disable unneeded createExpandSmallArgumentsPass
Diffstat (limited to 'lib/Transforms/NaCl/PNaClABISimplify.cpp')
-rw-r--r--lib/Transforms/NaCl/PNaClABISimplify.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp
index c9fbc7df42..013c03550d 100644
--- a/lib/Transforms/NaCl/PNaClABISimplify.cpp
+++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp
@@ -87,8 +87,9 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) {
// some optimizations undo its changes. Note that
// ExpandSmallArguments requires that ExpandVarArgs has already been
// run.
+#if 0 // EMSCRIPTEN: we don't need to worry about the issue this works around
PM.add(createExpandSmallArgumentsPass());
-
+#endif
PM.add(createPromoteI1OpsPass());
// Optimization passes and ExpandByVal introduce
@@ -129,7 +130,9 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) {
// analyses add attributes to reflect their results.
// StripAttributes must come after ExpandByVal and
// ExpandSmallArguments.
+#if 0 // EMSCRIPTEN: we don't need to worry about the issue this works around
PM.add(createStripAttributesPass());
+#endif
// Strip dead prototytes to appease the intrinsic ABI checks.
// ExpandVarArgs leaves around vararg intrinsics, and