[all-commits] [llvm/llvm-project] 4875e0: [BOLT][NFC] Improve performance of MCPlusBuilder::...
Job Noorman via All-commits
all-commits at lists.llvm.org
Mon Mar 13 11:51:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4875e0670926b0a40ce0dd2c3d490b1866889f54
https://github.com/llvm/llvm-project/commit/4875e0670926b0a40ce0dd2c3d490b1866889f54
Author: Job Noorman <jnoorman at igalia.com>
Date: 2023-03-13 (Mon, 13 Mar 2023)
Changed paths:
M bolt/lib/Core/MCPlusBuilder.cpp
Log Message:
-----------
[BOLT][NFC] Improve performance of MCPlusBuilder::initAliases
It was using a redundant iteration over super regs to build
SmallerAliasMap. Removing this results in exactly the same alias maps
and a noticeable performance gain on targets with a large number of
registers.
Just anecdotally: on my machine, processing a small AArch64 binary went
from 2.7s down to 80ms.
Reviewed By: Amir
Differential Revision: https://reviews.llvm.org/D145779
More information about the All-commits
mailing list