diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-12-16 14:57:04 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-12-16 14:57:04 +0000 |
commit | f24900b9348343f6c415bc164b0745e912e671a5 (patch) | |
tree | 549f13963b29271a2a4a6a2046acb647e9a6429a /lldb/packages/Python/lldbsuite/test/python_api | |
parent | aad3645fe1b22213d606c54f2342bbcf2871bf15 (diff) | |
download | bcm5719-llvm-f24900b9348343f6c415bc164b0745e912e671a5.tar.gz bcm5719-llvm-f24900b9348343f6c415bc164b0745e912e671a5.zip |
[DAGCombiner] allow hoisting vector bitwise logic ahead of truncates
The transform performs a bitwise logic op in a wider type followed by
truncate when both inputs are truncated from the same source type:
logic_op (truncate x), (truncate y) --> truncate (logic_op x, y)
There are a bunch of other checks that should prevent doing this when
it might be harmful.
We already do this transform for scalars in this spot. The vector
limitation was shared with a check for the case when the operands are
extended. I'm not sure if that limit is needed either, but that would
be a separate patch.
Differential Revision: https://reviews.llvm.org/D55448
llvm-svn: 349303
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions