diff options
author | Alon Zakai <azakai@google.com> | 2021-08-17 17:38:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 17:38:04 -0700 |
commit | 8d95402260d268966eb0b06c5f4da7e1c5854418 (patch) | |
tree | 1f6dacce034980c31e0b37270eabfc7124dad0d1 | |
parent | c0b126b7af2d3d9513b5cf8d541f5283984e902e (diff) | |
download | binaryen-8d95402260d268966eb0b06c5f4da7e1c5854418.tar.gz binaryen-8d95402260d268966eb0b06c5f4da7e1c5854418.tar.bz2 binaryen-8d95402260d268966eb0b06c5f4da7e1c5854418.zip |
Deprecate IgnoreImplicitTraps (#4087)
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | src/pass.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e3ac9022a..c4ec177eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ full changeset diff at the end of each section. Current Trunk ------------- +- Adds a TrapsNeverHappen mode (#4059). This has many of the benefits of + IgnoreImplicitTraps, but can be used safely in more cases. IgnoreImplicitTraps + is now deprecated. + v101 ---- diff --git a/src/pass.h b/src/pass.h index 08237b271..802a34ab5 100644 --- a/src/pass.h +++ b/src/pass.h @@ -98,6 +98,7 @@ struct PassOptions { // Tweak thresholds for the Inlining pass. InliningOptions inlining; // Optimize assuming things like div by 0, bad load/store, will not trap. + // This is deprecated in favor of trapsNeverHappen. bool ignoreImplicitTraps = false; // Optimize assuming a trap will never happen at runtime. This is similar to // ignoreImplicitTraps, but different: |