diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-02-03 21:43:34 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-02-03 21:43:34 +0000 |
commit | 73fc8ddb065112fbb7cad1453774ed96bbb7d6e3 (patch) | |
tree | ba2c3ab04aba252f1c73bad9b5a480c056530f0f /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
parent | 25324313325e906368fafd142bc6138c231e0b44 (diff) | |
download | bcm5719-llvm-73fc8ddb065112fbb7cad1453774ed96bbb7d6e3.tar.gz bcm5719-llvm-73fc8ddb065112fbb7cad1453774ed96bbb7d6e3.zip |
[InstCombine] fix operand-complexity-based canonicalization (PR28296)
The code comments didn't match the code logic, and we didn't actually distinguish the fake unary (not/neg/fneg)
operators from arguments. Adding another level to the weighting scheme provides more structure and can help
simplify the pattern matching in InstCombine and other places.
I fixed regressions that would have shown up from this change in:
rL290067
rL290127
But that doesn't mean there are no pattern-matching logic holes left; some combines may just be missing regression tests.
Should fix:
https://llvm.org/bugs/show_bug.cgi?id=28296
Differential Revision: https://reviews.llvm.org/D27933
llvm-svn: 294049
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions