[PATCH] D132358: [RISCV][ISel] improved compressed instruction use
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 21:49:51 PDT 2022
craig.topper added a comment.
In D132358#3902311 <https://reviews.llvm.org/D132358#3902311>, @dybv-sc wrote:
> So, after more running more spec tests in different modes (train and ref) on different RISCV boards (SiFive and THead) I got mixed results on performance. Performance increase on number on tests was insignificant while on other there was a slight decrease. On average performance declined by 0.5%. On the other hand, size reduction can be seen uniformly among all tests. On average it is 20 less bytes or 0.04% of size reduction. I think these amounts can't justify the performance cost.
> Considering that some performance reductions are platform specific (like the one I mentioned in previous comment) and rely on internal architecture features, it is not seem possible to come up with general solution here. And more specialized ones will require more time and effort. And possible 0.04% code size reduction just not worth it.
> What do you think?
Thanks for collecting the data. I agree, it sounds like its not worth it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132358/new/
https://reviews.llvm.org/D132358
More information about the llvm-commits
mailing list