diff options
-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: |