- Feb 06, 2020
-
-
Sjoerd Meijer authored
This test case was XFAIL'ed because the peepholer was missing an optimisation. But the peepholer is now able to handle this case, so enable this test. I will close the corresponding and very old PR11364.
-
Sjoerd Meijer authored
To find the instruction in the block for a given ID, first a count and then a lookup was performed in the map, which is almost the same thing, thus doing double the work. Differential Revision: https://reviews.llvm.org/D73866
-
Sam Parker authored
Test that we're not moving the instruction through instructions with side-effects. Differential Revision: https://reviews.llvm.org/D74058
-
Michael Liao authored
Summary: - Similar to other targets, instead of passing a toolchain, a driver argument should be passed into `arm::getARMTargetFeatures`. Aslo, that routine should honor the specified triple. Refactor `arm::getARMFloatABI` with 2 separate interfaces. One has the original parameters and the other uses the driver and the specified triple. - That fixes an issue when target & features are queried during the offload compilation, where the specified triple should be checked instead of a effective triple. A previously failed test is re-enabled. Subscribers: kristof.beyls, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74020
-
Raphael Isemann authored
-
Raphael Isemann authored
-
Clement Courbet authored
Reviewers: gchatelet Subscribers: tschuett, mstojanovic, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74114
-
Russell Gallop authored
This adds some of LLD specific scopes and picks up optimisation scopes via LTO/ThinLTO. Makes use of TimeProfiler multi-thread support added in 77e6bb3c. Differential Revision: https://reviews.llvm.org/D71060
-
Hans Wennborg authored
It broke e.g. all tests under tools/llvm-exegesis/X86/ when libpfm is not available, see comment on D74085. This reverts commit b3576f60 and 14191596.
-
Hans Wennborg authored
-
Hans Wennborg authored
This is a follow-up to ff837aa6, as discussed on the llvm-commits thread for that one.
-
Miloš Stojanović authored
Followup to D74085. Replace the use of `report_fatal_error()` with returning the error to `llvm-exegesis.cpp` and handling it there. Differential Revision: https://reviews.llvm.org/D74113
-
Miloš Stojanović authored
Fix inconsistencies in error reporting created by mixing `report_fatal_error()` and `ExitOnErr()`, and add additional information to the error message to make it more user friendly. Minimize the use `report_fatal_error()` because it's meant for use in very rare cases and it results in low information density of the error messages. Summary of the new design: * For command line argument errors output `llvm-exegesis: <error_message>`, which is consistent with the error output format emitted by the backend which checks correctness of the command line arguments. * For other errors the format `llvm-exegesis error: <error_message>` is used. ** If the error occurred during file access `<error_message>` will have of two parts: `'<file_name>': <rest_of_the_error_message>` Differential Revision: https://reviews.llvm.org/D74085 -
Simon Pilgrim authored
As detailed on PR43943, we're seeing static analyzer use after move warnings in the iplist_impl move constructor/operator as they call std::move to both the TraitsT and IntrusiveListT base classes. As suggested by @dexonsmith this patch casts the moved value to the base classes to silence the warnings. Differential Revision: https://reviews.llvm.org/D74062
-
Kirill Bobyrev authored
-
Kirill Bobyrev authored
This patch is based on D72746 and prevents non-spelled references from being renamed which would cause incorrect behavior otherwise. Reviewed by: hokein Differential Revision: https://reviews.llvm.org/D74112
-
Denis Antrushin authored
IRCE pass checks that it can calculate loop bounds by checking SCEV availability at loop entry. However it is possible that loop bound SCEV is loop invariant, but instruction used to compute it resides within loop. In such case adjusting loop bound in preheader using IRBuilder leads to malformed SSA. Use SCEVExpander instead to generate proper instructions. Reviewed-by: mkazantsev Differential Revision: https://reviews.llvm.org/D73496
-
OuHangKresnik authored
Differential Revision: https://reviews.llvm.org/D73848
-
Fangrui Song authored
-
Diogo Sampaio authored
Summary: ARM Type Promotion pass does not clear the container that defines if one variable was visited or not, missing optimization opportunities by luck when two llvm:Values from different functions are allocated at the same memory address. Also fixes a comment and uses existing method to pop and obtain last element of the worklist. Reviewers: samparker Reviewed By: samparker Subscribers: kristof.beyls, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73970
-
Miloš Stojanović authored
The default Error constructor can't be used since rL286561. Differential Revision: https://reviews.llvm.org/D74069
-
Fangrui Song authored
-
Fangrui Song authored
* Hide unrelated options. * Add "OVERVIEW: " to yaml2obj -h/--help. * Place options under a yaml2obj category. * Disallow -docnum. Currently -docnum is the only yaml2obj specific long option that is affected. * Specify `cl::init("-")` and `cl::Prefix` for OutputFilename. The latter allows `-ofile` Reviewed By: grimar, jhenderson Differential Revision: https://reviews.llvm.org/D73982 -
Georgii Rymar authored
It is consistent with the approach we use for Section struct. Differential revision: https://reviews.llvm.org/D74034
-
Alexey Bader authored
Summary: As a first step this implementation enables compilation of the offload code. Reviewers: ABataev Subscribers: ebevhan, Anastasia, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74048
-
Hans Wennborg authored
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D74084
-
Kirill Bobyrev authored
D72746 was missing a part of the patch before landing.
-
Kirill Bobyrev authored
This patch allows the index does to provide a way to distinguish implicit references (e.g. coming from macro expansions) from the spelled ones. The corresponding flag was added to RefKind and symbols that are referenced without spelling their name explicitly are now marked implicit. This allows fixing incorrect behavior when renaming a symbol that was referenced in macro expansions would try to rename macro invocations. Differential Revision: D72746 Reviewed by: hokein
-
Jonas Devlieghere authored
For the methods taking a char* and a length that have a custom replayer, ignore the incoming string in the instrumentation macro. This prevents potentially reading garbage and blowing up the SB API log.
-
Kern Handa authored
mlir-opt needs to link against MLIRLoopAnalysis This shouldn't be needed but MLIR "hack" for "whole-archive" linking is not compatible with CMake transitive dependencies management. Differential Revision: https://reviews.llvm.org/D74097
-
Pavel Labath authored
Summary: This is a preparatory patch to re-enable DWP support in lldb (we already have code claiming to do that, but it has been completely broken for a while now). The idea of the new approach is to make the SymbolFileDWARFDwo class handle both dwo and dwo files, similar to how llvm uses one DWARFContext to handle the two. The first step is to remove the assumption that a SymbolFileDWARFDwo holds just a single compile unit, i.e. the GetBaseCompileUnit method. This requires changing the way how we reach the skeleton compile unit (and the lldb_private::CompileUnit) from a dwo unit, which was previously done via GetSymbolFile()->GetBaseCompileUnit() (and some virtual dispatch). The new approach reuses the "user data" mechanism of DWARFUnits, which was used to link dwarf units (both skeleton and split) to their lldb_private counterparts. Now, this is done only for non-dwo units, and instead of that, the dwo units holds a pointer to the relevant skeleton unit. Reviewers: JDevlieghere, aprantl, clayborg Reviewed By: JDevlieghere, clayborg Subscribers: arphaman, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D73781
-
Michael Kruse authored
Commit 777180a3 "[ADT] Make StringRef's std::string conversion operator explicit" caused Polly's GPU code generator to not compile anymore. The rest of Polly has already been fixed in commit 0257a9 "Fix polly build after StringRef change."
-
Jonas Devlieghere authored
Some SB API methods returns strings through a char* and a length. This is a problem for the deserializer, which considers a single type at a time, and therefore cannot know how many bytes to allocate for the character buffer. We can solve this problem by implementing a custom replayer, which ignores the passed-in char* and allocates a buffer of the correct size itself, before invoking the original API method or function. This patch adds three new macros to register a custom replayer for methods that take a char* and a size_t. It supports arbitrary return values (some functions return a bool while others return a size_t).
-
Teresa Johnson authored
This reverts commit 748bb5a0. Due to Chromium CFI+ThinLTO test crashes reported on patch.
-
Jason Molenda authored
The developer mode check is now working. Add another check for user id mismatch, e.g. a regular user trying to attach to something running as root, and describe the problem for the user.
-
River Riddle authored
classes. This allows for the `LLVM::ModuleTranslation::translateModule` to properly access the constructors of the derived classes.
-
Petr Hosek authored
This is the imported target that find_package(ZLIB) defines.
-
River Riddle authored
Summary: This revision adds basic support for emitting line table information when exporting to LLVMIR. We don't yet have a story for supporting all of the LLVM debug metadata, so this revision stubs some features(like subprograms) to enable emitting line tables. Differential Revision: https://reviews.llvm.org/D73934
-
River Riddle authored
Differential Revision: https://reviews.llvm.org/D73932
-