[all-commits] [llvm/llvm-project] 68c729: [BOLT][NFC] Fix MCPlusBuilder::getAliases caching ...
Amir Ayupov via All-commits
all-commits at lists.llvm.org
Wed May 4 12:53:41 PDT 2022
Author: Amir Ayupov <amir.aupov at gmail.com>
Date: 2022-05-04 (Wed, 04 May 2022)
[BOLT][NFC] Fix MCPlusBuilder::getAliases caching behavior
Caching behavior of `getAliases` causes a failure in unit tests where two
MCPlusBuilder objects are created corresponding to AArch64 and X86:
the alias cache is created for AArch64 but then used for X86.
The issue only affects unit tests as we only construct one MCPlusBuilder
for ELF binary.
Resolve the issue by moving alias bitvectors to MCPlusBuilder object.
Reviewed By: yota9
Differential Revision: https://reviews.llvm.org/D124942
More information about the All-commits