diff options
author | Haicheng Wu <haicheng@codeaurora.org> | 2016-03-14 03:24:28 +0000 |
---|---|---|
committer | Haicheng Wu <haicheng@codeaurora.org> | 2016-03-14 03:24:28 +0000 |
commit | d60ae33d2961937635f49583898b40e9722592d8 (patch) | |
tree | 9d8a10055265bfa98db4088ac1e7741294f8b6c7 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py | |
parent | 4251d3779f579b5f70325f2cbce9b1ee4605ea85 (diff) | |
download | bcm5719-llvm-d60ae33d2961937635f49583898b40e9722592d8.tar.gz bcm5719-llvm-d60ae33d2961937635f49583898b40e9722592d8.zip |
[CVP] Convert an SDiv to a UDiv if both operands are known to be nonnegative
The motivating example is this
for (j = n; j > 1; j = i) {
i = j / 2;
}
The signed division is safely to be changed to an unsigned division (j is known
to be larger than 1 from the loop guard) and later turned into a single shift
without considering the sign bit.
llvm-svn: 263406
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py')
0 files changed, 0 insertions, 0 deletions