- Dec 29, 2021
-
-
Amir Ayupov authored
Summary: Refactor bolt/*/Profile to follow the braces rule for if/else/loop from [LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html). (cherry picked from FBD33345741)
-
Amir Ayupov authored
Summary: Refactor bolt/lib/Target to follow the braces rule for if/else/loop from [LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html). (cherry picked from FBD33345353)
-
Amir Ayupov authored
Summary: Access elements of a value pair in HotTargetMap debug logging/loop over HotTargetMap key-value. (cherry picked from FBD33344656)
-
Amir Ayupov authored
Summary: Refactor bolt/*/Passes to follow the braces rule for if/else/loop from [LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html). (cherry picked from FBD33344642)
-
- Dec 24, 2021
-
-
Amir Ayupov authored
Summary: Added doxygen configuration files and CMake directives, copy-pasta from flang. ```cmake -G Ninja ../llvm-project/llvm \ -DLLVM_ENABLE_PROJECTS="bolt" \ -DBOLT_INCLUDE_DOCS=YES \ -DLLVM_ENABLE_DOXYGEN=YES ninja doxygen-bolt ``` (cherry picked from FBD33303249)
-
Maksim Panchenko authored
Summary: Refactor bolt/*/Rewrite to follow the braces rule for if/else/loop from LLVM Coding Standards. (cherry picked from FBD33305364)
-
- Nov 28, 2021
-
-
Vladislav Khmelevsky authored
Summary: The lower_bound might return the end iterator, the ignoring of which will cause memory corruption. Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei (cherry picked from FBD33307803)
-
- Dec 24, 2021
-
-
Maksim Panchenko authored
Summary: Fixes facebookincubator/BOLT#271 (cherry picked from FBD33299273)
-
- Dec 23, 2021
-
-
Rafael Auler authored
Summary: Fix missing string header file inclusion and link_fdata find problem in lit tests. Change root-level tests to require linux. Re-enable Windows in our root CMakeLists.txt. (cherry picked from FBD33296290)
-
- Dec 21, 2021
-
-
Rafael Auler authored
Summary: Fix according to Coding Standards doc, section Don't Use Braces on Simple Single-Statement Bodies of if/else/loop Statements. This set of changes applies to lib Core only. (cherry picked from FBD33240028)
-
- Dec 24, 2021
-
-
Maksim Panchenko authored
Summary: Convert bughunter.sh to the new LLVM license and fix file-description comments. (cherry picked from FBD33298823)
-
- Dec 22, 2021
-
-
Maksim Panchenko authored
Summary: Fix comments at the start of source files. (cherry picked from FBD33274597)
-
- Dec 23, 2021
-
-
Maksim Panchenko authored
Summary: Remove the copyright/license message for the code originated from Facebook. (cherry picked from FBD33293101)
-
- Dec 21, 2021
-
-
Amir Ayupov authored
Summary: Addressing the feedback in https://lists.llvm.org/pipermail/llvm-dev/2021-December/154420.html: Updated the instructions to reflect LLVM monorepo layout. Resolved build issues in compiler-rt. (cherry picked from FBD33242317)
-
Rafael Auler authored
Summary: Addressing issue 270. (cherry picked from FBD33255608)
-
- Dec 03, 2021
-
-
Maksim Panchenko authored
Summary: Remove DataReader::getBranchRange(). (cherry picked from FBD32810933)
-
Maksim Panchenko authored
Summary: Remove BinaryFunction::getBasicBlockOriginalAddress(). (cherry picked from FBD32810127)
-
- Dec 19, 2021
-
-
Maksim Panchenko authored
Summary: Since nops are now removed in a separate pass, the profile is consumed on a CFG with nops. If previously a profile was generated without nops, the offsets in the profile could be different if branches included nops either as a source or a destination. This diff adjust offsets to make the profile reading backwards compatible. (cherry picked from FBD33231254)
-
Vladislav Khmelevsky authored
Summary: The patch moves the shortenInstructions and nop remove to separate binary passes. As a result when llvm-bolt optimizations stage will begin the instructions of the binary functions will be absolutely the same as it was in the binary. This is needed for the golang support by llvm-bolt. Some of the tests must be changed, since bb alignment nops might create unreachable BBs in original functions. Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei (cherry picked from FBD32896517)
-
- Dec 16, 2021
-
-
Rafael Auler authored
Summary: POPF instruction was triggering an assertion in our analysis. (cherry picked from FBD33141809)
-
- Dec 08, 2021
-
-
Elvina Yakubova authored
Summary: This patch adds AArch64 relocations handling in case updating of debug sections is enabled Elvina Yakubova, Advanced Software Technology Lab, Huawei (cherry picked from FBD33077609)
-
- Dec 16, 2021
-
-
Rafael Auler authored
Summary: This rule depends on bolt target, since it will run install-bolt as well. (cherry picked from FBD33152071)
-
- Dec 15, 2021
-
-
Maksim Panchenko authored
Summary: Selectively apply clang-format to BOLT code base. (cherry picked from FBD33119052)
-
- Dec 16, 2021
-
-
Rafael Auler authored
Summary: Create a new high-level target named bolt that builds all BOLT artifacts, as well as a install-bolt target that installs them. (cherry picked from FBD33133002)
-
- Dec 02, 2021
-
-
Amir Ayupov authored
Summary: Gracefully handle binaries with split functions where two fragments are folded into one, resulting in a fragment with two parent functions. This behavior is expected in GCC8+ with -O2 optimization level, where both function splitting and ICF are enabled by default. On the BOLT side, the changes are: - BinaryFunction: allow multiple parent fragments: - `ParentFragment` --> `ParentFragments`, - `setParentFragment` --> `addParentFragment`. - BinaryContext: - `populateJumpTables`: mark fragments to be skipped later, - `registerFragment`: add a name heuristic check, return false if it failed, - `processInterproceduralReferences`: check if `registerFragment` succeeded, otherwise issue a warning, - `skipMarkedFragments`: move out fragment traversal and skipping from `populateJumpTables` into a separate function. This change fixes an issue where unrelated functions might be registered as fragments: ``` BOLT-WARNING: interprocedural reference between unrelated fragments: bad_gs/1(*2) and amd_decode_mce.cold.27/1(*2) ``` (Linux kernel binary) (cherry picked from FBD32786688)
-
- Dec 10, 2021
-
-
Maksim Panchenko authored
Summary: Refactor members of BinaryBasicBlock. Replace some std containers with ADT equivalents. The size of BinaryBasicBlock on x86-64 Linux is reduced from 232 bytes to 192 bytes. (cherry picked from FBD33081850)
-
- Dec 11, 2021
-
-
Rafael Auler authored
Summary: Build is already broken because VS fails to locate llvm-boltdiff when running tests, and VS also complains that include/bolt/Passes/InstrumentationSummary.h is lacking an include string header. Disable this until we have a Windows buildbot to make sure this build is sane. (cherry picked from FBD33039972)
-
- Dec 09, 2021
-
-
Maksim Panchenko authored
Summary: Switched members of BinaryFunction to ADT where it was possible and made sense. As a result, the size of BinaryFunction on x86-64 Linux reduced from 1624 bytes to 1448. (cherry picked from FBD32981555)
-
- Dec 10, 2021
-
-
Maksim Panchenko authored
Summary: Remove the copyright/license message for the code originated from Facebook. (cherry picked from FBD32998404)
-
- Dec 09, 2021
-
-
Alexander Yermolovich authored
Summary: For DWP case the AbbreviationsOffset is the offset of the abbrev contribution in the DWP file, so can be none zero. (cherry picked from FBD32961240)
-
- Dec 07, 2021
-
-
Rafael Auler authored
Summary: Make explicit the contact of component owners. (cherry picked from FBD32904304)
-
Maksim Panchenko authored
Summary: Currently, RuntimeDyld will not allocate a section without relocations even if such a section is marked allocatable and defines symbols. When we emit .debug_line for compile units with unchanged code, we output original (input) data, without relocations. If all units are emitted in this way, we will have no relocations in the emitted .debug_line. RuntimeDyld will not allocate the section and as a result we will write an empty .debug_line section. To workaround the issue, always emit a relocation of RELOC_NONE type when emitting raw contents to debug_line. (cherry picked from FBD32909869)
-
- Dec 02, 2021
-
-
Maksim Panchenko authored
Summary: Some optimizations may remove all instructions in a basic block. The pass will cleanup the CFG afterwards by removing empty basic blocks and merging duplicate CFG edges. The normalized CFG is printed under '-print-normalized' option. (cherry picked from FBD32774360)
-
- Dec 04, 2021
-
-
Amir Ayupov authored
Summary: Remove the test and its inputs. (cherry picked from FBD32855788)
-
- Dec 03, 2021
-
-
Amir Ayupov authored
Summary: Remove unused code identified via coverage report. (cherry picked from FBD32818608)
-
Amir Ayupov authored
Summary: Remove unused code identified via coverage report. (cherry picked from FBD32818329)
-
- Dec 02, 2021
-
-
Amir Ayupov authored
Summary: Disable const/copy propagation as a bug workaround. Also add the debug logging in aggressive duplication. (cherry picked from FBD32774744)
-
- Nov 26, 2021
-
-
Maksim Panchenko authored
Summary: The debug message for the last fall-through block was printed under the reverse condition, i.e. when the block was not a fall-through. Remove the debug message. If we'll need such information, we can add a pass with more analysis, i.e. checking the last instruction, if the block is reachable, etc. (cherry picked from FBD32670816)
-
- Nov 30, 2021
-
-
Amir Ayupov authored
Summary: Print the relocation name instead of just the number. (cherry picked from FBD32704832)
-
- Nov 25, 2021
-
-
Amir Ayupov authored
Summary: The intent is clearly to check the current basic block. (cherry picked from FBD32658103)
-