diff options
author | Alon Zakai <azakai@google.com> | 2020-07-31 12:35:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 12:35:01 -0700 |
commit | d09c607ff2f2c264546b7d4ea3593ae75a037750 (patch) | |
tree | 28106c525a5a6174c70ecb5527eabc171e9be039 /src/passes/pass.cpp | |
parent | 26060b2cfe835e208d29e12d70a1a8eee70b3c14 (diff) | |
download | binaryen-d09c607ff2f2c264546b7d4ea3593ae75a037750.tar.gz binaryen-d09c607ff2f2c264546b7d4ea3593ae75a037750.tar.bz2 binaryen-d09c607ff2f2c264546b7d4ea3593ae75a037750.zip |
New Dealign pass: reduce load/store alignment to 1 (#3010)
Pretty trivial, but will be useful in wasm2js testing, where we
can't assume an incorrectly-aligned load/store will still work,
so we'll need to be pessimistic about alignment there.
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index 14bf5d185..6dcc58b50 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -104,6 +104,9 @@ void PassRegistry::registerPasses() { createConstHoistingPass); registerPass( "dce", "removes unreachable code", createDeadCodeEliminationPass); + registerPass("dealign", + "forces all loads and stores to have alignment 1", + createDeAlignPass); registerPass("denan", "instrument the wasm to convert NaNs into 0 at runtime", createDeNaNPass); |