diff options
| author | Francesco Petrogalli <francesco.petrogalli@arm.com> | 2020-02-18 19:13:39 +0000 |
|---|---|---|
| committer | Francesco Petrogalli <francesco.petrogalli@arm.com> | 2020-02-21 18:03:12 +0000 |
| commit | 31ec721516b5ed36f7dbed180a903e269f29716d (patch) | |
| tree | ef66192ffcf2b907eb57983bf916d96333f6296b /lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h | |
| parent | b178555318cdccecc9d3fb4af89b4a765cb0e48c (diff) | |
| download | llvm-31ec721516b5ed36f7dbed180a903e269f29716d.zip llvm-31ec721516b5ed36f7dbed180a903e269f29716d.tar.gz llvm-31ec721516b5ed36f7dbed180a903e269f29716d.tar.bz2 | |
[llvm][CodeGen] DAG Combiner folds for vscale.
Summary:
This patch simplifies the DAGs generated when using the intrinsic `@llvm.vscale.*` as follows:
* Fold (add (vscale * C0), (vscale * C1)) to (vscale * (C0 + C1)).
* Canonicalize (sub X, (vscale * C)) to (add X, (vscale * -C)).
* Fold (mul (vscale * C0), C1) to (vscale * (C0 * C1)).
* Fold (shl (vscale * C0), C1) to (vscale * (C0 << C1)).
The test `sve-gep-ll` have been updated to reflect the folding introduced by this patch.
Reviewers: efriedma, sdesmalen, andwar, rengolin
Reviewed By: sdesmalen
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D74782
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h')
0 files changed, 0 insertions, 0 deletions
