summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LazyValueInfo.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2017-12-18 14:23:30 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2017-12-18 14:23:30 +0000
commit1acab00229576cdb8ba5972d3794dfcc76282c08 (patch)
treee408f757ecb3e50e943a96bf0775cb1f0137af66 /llvm/lib/Analysis/LazyValueInfo.cpp
parent0c352eb940afac7221d4b84d9b3acbb405ffa4d8 (diff)
downloadbcm5719-llvm-1acab00229576cdb8ba5972d3794dfcc76282c08.tar.gz
bcm5719-llvm-1acab00229576cdb8ba5972d3794dfcc76282c08.zip
[LVI] Support for ashr in LVI
Enhance LVI to analyze the ‘ashr’ binary operation. This leverages the infrastructure in ConstantRange for the ashr operation. Patch by Surya Kumari Jangala! Differential Revision: https://reviews.llvm.org/D40886 llvm-svn: 320983
Diffstat (limited to 'llvm/lib/Analysis/LazyValueInfo.cpp')
-rw-r--r--llvm/lib/Analysis/LazyValueInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index 709d4f144bb..d7da669f6e7 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/lib/Analysis/LazyValueInfo.cpp
@@ -1002,6 +1002,7 @@ bool LazyValueInfoImpl::solveBlockValueBinaryOp(ValueLatticeElement &BBLV,
case Instruction::UDiv:
case Instruction::Shl:
case Instruction::LShr:
+ case Instruction::AShr:
case Instruction::And:
case Instruction::Or:
// continue into the code below
OpenPOWER on IntegriCloud