[PATCH] D78453: [llvm][Z3][NFC] Improve mkBitvector performance
Gábor Horváth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 19 12:17:28 PDT 2020
xazax.hun accepted this revision.
xazax.hun added a comment.
This revision is now accepted and ready to land.
Mostly looks good to me. I do believe that this is an optimization but it would be nice to have a small benchmark :) In case it is too much work, I do not insist though.
================
Comment at: llvm/lib/Support/Z3Solver.cpp:730
+ // Slow path, when 64 bits are not enough.
+ if (LLVM_UNLIKELY(Int.getBitWidth() > 64u)) {
+ SmallString<40> Buffer;
----------------
I am not sure if the unlikely is justified. The likelihood might depend on the analyzed code and it is possible to write code where this is the frequent case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78453/new/
https://reviews.llvm.org/D78453
More information about the llvm-commits
mailing list