diff options
| author | Mikhail R. Gadelha <mikhail.ramalho@gmail.com> | 2018-06-20 11:42:12 +0000 |
|---|---|---|
| committer | Mikhail R. Gadelha <mikhail.ramalho@gmail.com> | 2018-06-20 11:42:12 +0000 |
| commit | bd1077e2bc7edb2368ac4947b15d6763ac967869 (patch) | |
| tree | a1a52d61f10218a53a85a492d242833b3b1af568 /llvm/tools/llvm-exegesis/lib/Assembler.cpp | |
| parent | 1ebb67535fb3766b69480f229dcfa8eb3857870b (diff) | |
| download | bcm5719-llvm-bd1077e2bc7edb2368ac4947b15d6763ac967869.tar.gz bcm5719-llvm-bd1077e2bc7edb2368ac4947b15d6763ac967869.zip | |
[analyzer] Optimize constraint generation when the range is a concrete value
Summary:
If a constraint is something like:
```
$0 = [1,1]
```
it'll now be created as:
```
assert($0 == 1)
```
instead of:
```
assert($0 >= 1 && $0 <= 1)
```
In general, ~3% speedup when solving per query in my machine. Biggest improvement was when verifying sqlite3, total time went down from 3000s to 2200s.
I couldn't create a test for this as there is no way to dump the formula yet. D48221 adds a method to dump the formula but there is no way to do it from the command line.
Also, a test that prints the formula will most likely fail in the future, as different solvers print the formula in different formats.
Reviewers: NoQ, george.karpenkov, ddcc
Reviewed By: george.karpenkov
Subscribers: xazax.hun, szepet, a.sidorin
Differential Revision: https://reviews.llvm.org/D48227
llvm-svn: 335116
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Assembler.cpp')
0 files changed, 0 insertions, 0 deletions

