diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-02-07 17:43:34 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-02-07 17:43:34 +0000 |
commit | 2d4b186844ab56768165240f2cc32b7cec53bf02 (patch) | |
tree | 2e4958962155f25218d344330408eb30d736900d /lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c | |
parent | c83b82363c6d19dbfc5d148438a274f1f85b9188 (diff) | |
download | bcm5719-llvm-2d4b186844ab56768165240f2cc32b7cec53bf02.tar.gz bcm5719-llvm-2d4b186844ab56768165240f2cc32b7cec53bf02.zip |
[DAGCombiner] fold add/sub with bool operand based on target's boolean contents
I noticed that we are missing this canonicalization in IR:
rL352515
...and then realized that we don't get this right in SDAG either,
so this has to be fixed first regardless of what we choose to do in IR.
The existing fold was limited to scalars and using the wrong predicate
to guard the transform. We have a boolean contents TLI query that can
be used to decide which direction to fold.
This may eventually lead back to the problems/question in:
https://bugs.llvm.org/show_bug.cgi?id=40486
...but it makes no difference to that yet.
Differential Revision: https://reviews.llvm.org/D57401
llvm-svn: 353433
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/interpreter/main.c')
0 files changed, 0 insertions, 0 deletions