- Feb 07, 2020
-
-
Med Ismail Bennani authored
When a thread stops, this checks depending on the platform if the top frame is an abort stack frame. If so, it looks for an assert stack frame in the upper frames and set it as the most relavant frame when found. To do so, the StackFrameRecognizer class holds a "Most Relevant Frame" and a "cooked" stop reason description. When the thread is about to stop, it checks if the current frame is recognized, and if so, it fetches the recognized frame's attributes and applies them. rdar://58528686 Differential Revision: https://reviews.llvm.org/D73303 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Michael Liao authored
-
Chris Bowler authored
This patch implements the caller side of placing function call arguments in stack memory. This removes the current limitation where LLVM on AIX will report fatal error when arguments can't be contained in registers. There is a particular oddity that a float argument that passes in a register and also in stack memory requires that the caller initialize both. From what AIX "ABI" documentation I have it's not clear that this needs to be done, however, it is necessary for compatibility with the AIX XL compiler so I think it's best to implement it the same way. Note a later patch will follow to address the callee side. Differential Revision: https://reviews.llvm.org/D73209
-
Benjamin Kramer authored
Technically a leak in tblgen is harmless, but this makes asan builds of mlir very noisy. Just use a SpecificBumpPtrAllocator that knows how to clean up after itself.
-
Mikhail Maltsev authored
Summary: This patch implements the following Arm ACLE MVE intrinsics: * vcvtq_n_* * vcvtq_m_n_* * vcvtq_x_n_* and two corresponding LLVM IR intrinsics: * int_arm_mve_vcvt_fix (vcvtq_n_*) * int_arm_mve_vcvt_fix_predicated (vcvtq_m_n_*, vcvtq_x_n_*) Reviewers: simon_tatham, ostannard, MarkMurrayARM, dmgreen Reviewed By: MarkMurrayARM Subscribers: kristof.beyls, hiraditya, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D74134
-
Mehdi Amini authored
This reverts commit 64871f77. ASAN indicates a use-after-free in in mlir::canFuseLoops(mlir::AffineForOp, mlir::AffineForOp, unsigned int, mlir::ComputationSliceState*) lib/Transforms/Utils/LoopFusionUtils.cpp:202:41
-
Petr Hosek authored
This reverts commit 491a4a7a as it broke the runtimes build on Darwin.
-
- Feb 06, 2020
-
-
Haojian Wu authored
Summary: DeclarationName for cxx constructor is special, it is not an identifier. thus the "Spelled" flag are not set for all ctor references, this patch fixes it. Reviewers: kbobyrev Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74125
-
Sven van Haastregt authored
Reduce the size of some of the TableGen'ed OpenCL builtin function tables: - Use bit fields for bools such that they are packed together. This saves about 7kb. - Use unsigned short for SignatureTable. This saves about 10kb.
-
Sjoerd Meijer authored
Fix typo in the vectorisation optimisation remarks example: -Rpass-missed=loop-vectorized => -Rpass-missed=loop-vectorize
-
Jeremy Morse authored
This reverts commit ed29dbaa. I'm backing out D68945, which as the discussion for D73526 shows, doesn't seem to handle the -O0 path through the codegen backend correctly. I'll reland the patch when a fix is worked out, apologies for all the churn. The two parent commits are part of this revert too. Conflicts: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp llvm/test/DebugInfo/X86/dbg-addr-dse.ll SelectionDAGBuilder conflict is due to a nearby change in e39e2b4a that's technically unrelated. dbg-addr-dse.ll conflicted because 41206b61 (legitimately) changes the order of two lines. There are further modifications to dbg-value-func-arg.ll: it landed after the patch being reverted, and I've converted indirection to be represented by the isIndirect field rather than DW_OP_deref.
-
Jeremy Morse authored
This reverts commit 3137fe4d. I'm backing out D68945, which this patch is a follow up for. It'll be re-landed when D68945 is fixed. The changes to dbg-value-func-arg.ll occur because our handling of certain kinds of location now mixes up indirection that happens at different points in a DIExpression. While this is a regression, it's a return to the prior behaviour while a better patch is sought.
-
Jeremy Morse authored
This reverts commit 2d3174c4. The overall solution for this problem is reverting D68945, which wasn't handling the -O0 path through the codegen backend correctly. See: discussion in D73526.
-
Haojian Wu authored
Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74036
-
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
-