summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Assembler.cpp
diff options
context:
space:
mode:
authorMikhail R. Gadelha <mikhail.ramalho@gmail.com>2018-06-20 11:42:12 +0000
committerMikhail R. Gadelha <mikhail.ramalho@gmail.com>2018-06-20 11:42:12 +0000
commitbd1077e2bc7edb2368ac4947b15d6763ac967869 (patch)
treea1a52d61f10218a53a85a492d242833b3b1af568 /llvm/tools/llvm-exegesis/lib/Assembler.cpp
parent1ebb67535fb3766b69480f229dcfa8eb3857870b (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud