diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-12-30 22:40:52 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-12-30 22:40:52 +0000 |
commit | 41160c2094b458a1bd363d40c47a120c26614300 (patch) | |
tree | ed384aeda11bb3fe3ee1c5f9fff6ea4dcc244607 /clang/lib/AST/Expr.cpp | |
parent | 934b092186b149b5ba2626badeb3bf7719a8e153 (diff) | |
download | bcm5719-llvm-41160c2094b458a1bd363d40c47a120c26614300.tar.gz bcm5719-llvm-41160c2094b458a1bd363d40c47a120c26614300.zip |
[ValueTracking] fix bug computing isKnownToBeAPowerOfTwo() with arithmetic shift right (PR25900)
This is a fix for:
https://llvm.org/bugs/show_bug.cgi?id=25900
If we think that an arithmetic right shift of a power of two is always a power of two,
an sdiv gets wrongly converted to udiv.
Differential Revision: http://reviews.llvm.org/D15827
llvm-svn: 256655
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
0 files changed, 0 insertions, 0 deletions