diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-09 21:17:42 +0000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-09 21:17:42 +0000 |
commit | 490975979bee1a75db06245ea62affc72912fb99 (patch) | |
tree | 7ccae0552b9ed560c0015a84245ffbc624d1a730 /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | b7db2e9f82422cf18a88711f2f350fe1696a25eb (diff) | |
download | bcm5719-llvm-490975979bee1a75db06245ea62affc72912fb99.tar.gz bcm5719-llvm-490975979bee1a75db06245ea62affc72912fb99.zip |
[ValueTracking] Move constant range computation into ValueTracking; NFC
InstructionSimplify currently has some code to determine the constant
range of integer instructions for some simple cases. It is used to
simplify icmps.
This change moves the relevant code into ValueTracking as
llvm::computeConstantRange(), so it can also be reused for other
purposes.
In particular this is with the optimization of overflow checks in
mind (ref D59071), where constant ranges cover some cases that
known bits don't.
llvm-svn: 355781
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions