diff options
author | Dan Gohman <sunfish@google.com> | 2013-07-08 11:23:18 -0700 |
---|---|---|
committer | Dan Gohman <sunfish@google.com> | 2013-07-08 11:23:18 -0700 |
commit | b090967580b4b1d03134b4dd11d849fd50f23951 (patch) | |
tree | 041e5826045ab5482ac715b4e391cb30a09affea /tools/autodebugger_c.py | |
parent | 3117fa129fe2aef34a7c954bfe02c1eb0e5f8d29 (diff) |
Xor optimizations.
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.
Diffstat (limited to 'tools/autodebugger_c.py')
0 files changed, 0 insertions, 0 deletions