diff options
author | Daniel Neilson <dneilson@azul.com> | 2017-09-22 15:47:57 +0000 |
---|---|---|
committer | Daniel Neilson <dneilson@azul.com> | 2017-09-22 15:47:57 +0000 |
commit | 1341ac2ced33ef42c755b5c8379585699cab44bf (patch) | |
tree | 42163a3092d6e8398c92541fbf265861f64094b5 /lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py | |
parent | 392480952c4e0081a932eb9ea093bd54f15e47ff (diff) | |
download | bcm5719-llvm-1341ac2ced33ef42c755b5c8379585699cab44bf.tar.gz bcm5719-llvm-1341ac2ced33ef42c755b5c8379585699cab44bf.zip |
[SCEV] Generalize folding of trunc(x)+n*trunc(y) into folding m*trunc(x)+n*trunc(y)
Summary:
A SCEV such as:
{%v2,+,((-1 * (trunc i64 (-1 * %v1) to i32)) + (-1 * (trunc i64 %v1 to i32)))}<%loop>
can be folded into, simply, {%v2,+,0}. However, the current code in ::getAddExpr()
will not try to apply the simplification m*trunc(x)+n*trunc(y) -> trunc(trunc(m)*x+trunc(n)*y)
because it only keys off having a non-multiplied trunc as the first term in the simplification.
This patch generalizes this code to try to do a more generic fold of these trunc
expressions.
Reviewers: sanjoy
Reviewed By: sanjoy
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D37888
llvm-svn: 313988
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py')
0 files changed, 0 insertions, 0 deletions