diff options
author | Alon Zakai <azakai@google.com> | 2023-06-06 17:15:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 17:15:29 -0700 |
commit | c70c0da85b689a7be23292731aa9bdc4ab22285e (patch) | |
tree | 4408286eface0bf986ddbc751df3baf3726e2173 /src | |
parent | 7b093e8d0cfe09471aed4eb40c093f0603f11efb (diff) | |
download | binaryen-c70c0da85b689a7be23292731aa9bdc4ab22285e.tar.gz binaryen-c70c0da85b689a7be23292731aa9bdc4ab22285e.tar.bz2 binaryen-c70c0da85b689a7be23292731aa9bdc4ab22285e.zip |
[NFC] Remove redundant code from EffectAnalyzer (#5754)
This PR removes a check for
transfersControlFlow() && other.trap
which is already checked higher up in the code, here:
transfersControlFlow() && other.hasSideEffects()
In
binaryen/src/ir/effects.h , lines 223 to 224
That last code handles the first code because trapping is part
of hasSideEffects().
Diffstat (limited to 'src')
-rw-r--r-- | src/ir/effects.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h index 833da2540..29a6375ad 100644 --- a/src/ir/effects.h +++ b/src/ir/effects.h @@ -264,11 +264,6 @@ public: return true; } } - // We are ok to reorder implicit traps, but not conditionalize them. - if ((trap && other.transfersControlFlow()) || - (other.trap && transfersControlFlow())) { - return true; - } // Note that the above includes disallowing the reordering of a trap with an // exception (as an exception can transfer control flow inside the current // function, so transfersControlFlow would be true) - while we allow the |