diff options
author | Evgeny Stupachenko <evstupac@gmail.com> | 2017-05-16 21:44:59 +0000 |
---|---|---|
committer | Evgeny Stupachenko <evstupac@gmail.com> | 2017-05-16 21:44:59 +0000 |
commit | cc19560253cfba353d118476e344252a1aeb8f7c (patch) | |
tree | 9088ee42175e86738576797598ba4ba890b01b30 /lldb/packages/Python/lldbsuite/support/optional_with.py | |
parent | c9916d7e97029e22dae2e4fc4d3959cae3bdd2cf (diff) | |
download | bcm5719-llvm-cc19560253cfba353d118476e344252a1aeb8f7c.tar.gz bcm5719-llvm-cc19560253cfba353d118476e344252a1aeb8f7c.zip |
The patch exclude a case from zero check skip in
CTLZ idiom recognition (r303102).
Summary:
The following case:
i = 1;
if(n)
while (n >>= 1)
i++;
use(i);
Was converted to:
i = 1;
if(n)
i += builtin_ctlz(n >> 1, false);
use(i);
Which is not correct. The patch make it:
i = 1;
if(n)
i += builtin_ctlz(n >> 1, true);
use(i);
From: Evgeny Stupachenko <evstupac@gmail.com>
llvm-svn: 303212
Diffstat (limited to 'lldb/packages/Python/lldbsuite/support/optional_with.py')
0 files changed, 0 insertions, 0 deletions