diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-09-26 14:31:17 +0100 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-09-26 14:31:57 +0100 |
| commit | a61272a900296573902dfce99274fd335239a4d3 (patch) | |
| tree | 030b81629cda2689d2524f2399aecf7bff21ed11 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | decc1944f38f4205bf53829bf91e3c98ea6fc7ac (diff) | |
[DAG] Fold vector mul(x,0)/mul(x,1) to a clearing mask
If we're multiplying all elements of a vector by '0' or '1' then we can more efficiently perform this as a clearing mask (that is likely to further simplify to a shuffle blend).
This was noticed when reviewing D87502 but seems to help idiv/irem by constant cases even more as '0'/'1' values are often used for 'passthrough' cases.
Differential Revision: https://reviews.llvm.org/D88225
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
