Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
of ~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Incoming
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
variable elimination, to reduce spilling
|
|
|
|
Optimize x^-1 to ~x; this comes up because LLVM does not have a bitwise
negate operator. Optimize x&1^1 to !x; this comes up because of how LLVM
lowers C++ bool variables.
Also, add an optimization to simplifyExpressionsPre to eliminate |0 from
'~' expressions in more cases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add an optimization to simplifyExpressionsPre to replace (x<y)&1 with x<y
if possible. This comes up frequently in C++ with bool variables.
|
|
|
|
|
|
Remove old code.
|
|
|
|
|
|
|
|
Conflicts:
tools/js-optimizer.js
|
|
This allows us to preserve more line numbers when debugging.
|
|
|