summaryrefslogtreecommitdiff
path: root/src/passes/OptimizeInstructions.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2017-09-06 14:13:29 -0700
committerGitHub <noreply@github.com>2017-09-06 14:13:29 -0700
commitd2a401d27ef3592638e0e7689eebed317966334a (patch)
tree13f627f7cd3aaeb20ac1708ad1bf244bf7ec07c4 /src/passes/OptimizeInstructions.cpp
parent192b59a8bc8e5376ca120dc592d5abad7c654230 (diff)
downloadbinaryen-d2a401d27ef3592638e0e7689eebed317966334a.tar.gz
binaryen-d2a401d27ef3592638e0e7689eebed317966334a.tar.bz2
binaryen-d2a401d27ef3592638e0e7689eebed317966334a.zip
Add support for sign-extension operators from threading proposal (#1167)
These are not atomic operations, but are added with the atomic operations to keep from having to define atomic versions of all the sign-extending loads (an atomic zero-extending load + signext operation can be used instead).
Diffstat (limited to 'src/passes/OptimizeInstructions.cpp')
-rw-r--r--src/passes/OptimizeInstructions.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/passes/OptimizeInstructions.cpp b/src/passes/OptimizeInstructions.cpp
index acbf39447..1f2f07110 100644
--- a/src/passes/OptimizeInstructions.cpp
+++ b/src/passes/OptimizeInstructions.cpp
@@ -31,6 +31,8 @@
#include <ast/properties.h>
#include <ast/literal-utils.h>
+// TODO: Use the new sign-extension opcodes where appropriate. This needs to be conditionalized on the availability of atomics.
+
namespace wasm {
Name I32_EXPR = "i32.expr",