diff options
author | Zhaoshi Zheng <zhaoshiz@coduaurora.org> | 2017-03-23 18:06:09 +0000 |
---|---|---|
committer | Zhaoshi Zheng <zhaoshiz@coduaurora.org> | 2017-03-23 18:06:09 +0000 |
commit | e3c9070f06d33907e77956fd16abca90bf5ef819 (patch) | |
tree | 3d159b603fc49bcb48ef507922061ef85f881f5d /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f47c27513b20a41ce23f46b6857e2b8886eb9d74 (diff) | |
download | bcm5719-llvm-e3c9070f06d33907e77956fd16abca90bf5ef819.tar.gz bcm5719-llvm-e3c9070f06d33907e77956fd16abca90bf5ef819.zip |
Model ashr(shl(x, n), m) as mul(x, 2^(n-m)) when n > m
Given below case:
%y = shl %x, n
%z = ashr %y, m
when n = m, SCEV models it as sext(trunc(x)). This patch tries to handle
the case where n > m by using sext(mul(trunc(x), 2^(n-m)))) as the SCEV
expression.
llvm-svn: 298631
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions