diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-11-01 15:40:30 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2016-11-01 15:40:30 +0000 |
commit | 6dd8fab443451e1bbab87186057a80e3088d6d84 (patch) | |
tree | 9f6b1fce4190f8c95dfb4dc26d963275c828a93f /lldb/packages/Python/lldbsuite/test/functionalities/command_source/my.py | |
parent | 60d6ef63a4e30bbba038d67849fa786314f670f6 (diff) | |
download | bcm5719-llvm-6dd8fab443451e1bbab87186057a80e3088d6d84.tar.gz bcm5719-llvm-6dd8fab443451e1bbab87186057a80e3088d6d84.zip |
[InstCombine] Folding of shifts by the sum of positive values
This patch introduces the combine:
(C1 shift (A add C2)) -> ((C1 shift C2) shift A)
iff A and C2 are both positive
If both A and C2 are know to be positive then we can safely split into 2 shifts, permitting the folding of the Inner shift.
Fix for the spec benchmark case mentioned by @nadav on PR15141 (assuming we can prove that the inputs as positive).
Differential Revision: https://reviews.llvm.org/D26000
llvm-svn: 285696
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/command_source/my.py')
0 files changed, 0 insertions, 0 deletions