diff options
author | Alon Zakai <azakai@google.com> | 2021-03-30 08:53:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 08:53:43 -0700 |
commit | a3ea08bd0588099225b5f2b1fb7e6f0ad49dddcb (patch) | |
tree | 273c434c5f87c95f1ab43eccbdf708f38de439a7 /src/parsing.h | |
parent | 9b38e4394034d6f25f54fc471bb9ac8812815331 (diff) | |
download | binaryen-a3ea08bd0588099225b5f2b1fb7e6f0ad49dddcb.tar.gz binaryen-a3ea08bd0588099225b5f2b1fb7e6f0ad49dddcb.tar.bz2 binaryen-a3ea08bd0588099225b5f2b1fb7e6f0ad49dddcb.zip |
OptimizeInstructions: bool(x) xor 1 ==> !bool(x) (#3741)
This was noticed by samparker on LLVM:
https://reviews.llvm.org/D99171
This is apparently a pattern LLVM emits, and doing it there helps by 1-2%
on the real-world Bullet Physics codebase. Seems worthwhile doing here
as well.
Diffstat (limited to 'src/parsing.h')
0 files changed, 0 insertions, 0 deletions