diff options
author | Justin Lebar <jlebar@google.com> | 2018-06-14 17:13:35 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2018-06-14 17:13:35 +0000 |
commit | b326904dba986560d5d27da8bd67b963a14079b3 (patch) | |
tree | 9cafa8bf4f971a89683f84890bc1882be66679cb /lldb/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py | |
parent | 62a0747926cc4087bbfd9bf48ca0a9a19d1cdb7b (diff) | |
download | bcm5719-llvm-b326904dba986560d5d27da8bd67b963a14079b3.tar.gz bcm5719-llvm-b326904dba986560d5d27da8bd67b963a14079b3.zip |
[SCEV] Simplify trunc-of-add/mul to add/mul-of-trunc under more circumstances.
Summary:
Previously we would do this simplification only if it did not introduce
any new truncs (excepting new truncs which replace other cast ops).
This change weakens this condition: If the number of truncs stays the
same, but we're able to transform trunc(X + Y) to X + trunc(Y), that's
still simpler, and it may open up additional transformations.
While we're here, also clean up some duplicated code.
Reviewers: sanjoy
Subscribers: hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D48160
llvm-svn: 334736
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py')
0 files changed, 0 insertions, 0 deletions