1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
Go to file
Rahman Lavaee 325b500b46 [llvm-readelf, propeller] Add fallthrough bit to basic block metadata in BB-Address-Map section.
This patch adds a fallthrough bit to basic block metadata, indicating whether the basic block can fallthrough without taking any branches. The bit will help us avoid an intel LBR bug which results in occasional duplicate entries at the beginning of the LBR stack.

This patch uses `MachineBasicBlock::canFallThrough()` to set the bit. This is not a const method because it eventually calls `TargetInstrInfo::analyzeBranch`, but it calls this function with the default `AllowModify=false`. So we can either make the argument to the `getBBAddrMapMetadata` non-const, or we can use `const_cast` when calling `canFallThrough`. I decide to go with the latter since this is purely due to legacy code, and in general we should not allow the BasicBlock to be mutable during `getBBAddrMapMetadata`.

Reviewed By: tmsriram

Differential Revision: https://reviews.llvm.org/D96918
2021-03-22 21:38:05 -07:00
benchmarks
bindings [OCaml] Add (get/set)_module_identifer functions 2021-03-20 20:41:51 +05:30
cmake [cmake] Disable GCC 9's -Wpessimizing-move 2021-03-22 15:14:46 +02:00
docs [AMDGPU] Reserve ELF code 2021-03-23 04:30:38 +00:00
examples [ORC] Fix some comments in the LLJITWithObjectLinkingLayerPlugin example. 2021-03-12 19:13:42 -08:00
include [llvm-readelf, propeller] Add fallthrough bit to basic block metadata in BB-Address-Map section. 2021-03-22 21:38:05 -07:00
lib [llvm-readelf, propeller] Add fallthrough bit to basic block metadata in BB-Address-Map section. 2021-03-22 21:38:05 -07:00
projects
resources
runtimes [PR48898][CMake] Support MinGW Toolchain tool sin llvm_ExternalProject_Add 2021-03-02 22:45:05 +01:00
test [llvm-readelf, propeller] Add fallthrough bit to basic block metadata in BB-Address-Map section. 2021-03-22 21:38:05 -07:00
tools [llvm-readelf, propeller] Add fallthrough bit to basic block metadata in BB-Address-Map section. 2021-03-22 21:38:05 -07:00
unittests [llvm-objcopy][Support] move writeToOutput helper function to Support. 2021-03-22 15:41:10 +03:00
utils Revert "[Passes] Add relative lookup table converter pass" 2021-03-23 00:43:16 +00:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [test] Add ability to get error messages from CMake for errc substitution 2021-03-15 20:56:08 +01:00
CODE_OWNERS.TXT [M68k][CODE_OWNERS](0/8) Add code owner for the M68k target 2021-03-08 12:30:56 -08:00
configure
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
README.txt
RELEASE_TESTERS.TXT

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.