summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorZhaoshi Zheng <zhaoshiz@coduaurora.org>2017-03-23 18:06:09 +0000
committerZhaoshi Zheng <zhaoshiz@coduaurora.org>2017-03-23 18:06:09 +0000
commite3c9070f06d33907e77956fd16abca90bf5ef819 (patch)
tree3d159b603fc49bcb48ef507922061ef85f881f5d /clang/lib/Frontend/CompilerInvocation.cpp
parentf47c27513b20a41ce23f46b6857e2b8886eb9d74 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud