- Jun 30, 2022
-
-
Jonas Devlieghere authored
The two XFAILed tests started timing out after D126983. Given that they were XFAILed anyway I didn't investigate and just skipped them.
-
Argyrios Kyrtzidis authored
[Lex] Make sure to notify `MultipleIncludeOpt` for "read tokens" during fast dependency directive lexing Otherwise a header may be erroneously marked as having a header macro guard and won't get re-included. Differential Revision: https://reviews.llvm.org/D128772
-
Michael Kruse authored
The copy statements inserted by the matrix-multiplication optimization introduce new dependencies between the copy statements and other statements. As a result, the DependenceInfo must be recomputed. Not recomputing them caused IslAstInfo to deduce that some loops are parallel but cause race conditions when accessing the packed arrays. As a result, matrix-matrix multiplication currently cannot be parallelized. Also see discussion at https://reviews.llvm.org/D125202
-
Jonas Devlieghere authored
Skip TestAppleSimulatorOSType is simulator isn't available for the given platform.
-
Jonas Devlieghere authored
TestVSCode_breakpointEvents.py is failing on macOS Ventura because we receive 3 breakpoint events instead of one. This is likely the result of dyld moving into the shared cache.
-
Volodymyr Sapsai authored
-
Jin Xin Ng authored
Completes D127777 by adding llvm-side tests for emitting index and imports files from in-process ThinLTO Differential Revision: https://reviews.llvm.org/D128771
-
Petr Hosek authored
This reverts commit 2483b3a9679ed2d92abbdbae6927e022903acc70 since it broke clang-armv7-vfpv3-full-2stage builder: https://lab.llvm.org/buildbot#builders/190/builds/887
-
Maksim Panchenko authored
When SplitFunctions pass adds a trampoline code for exception landing pads (limited to shared objects), it may increase the size of the hot fragment making it larger than the whole function pre-split. When this happens, the pass reverts the splitting action by restoring the original block order and marking all blocks hot. However, if createEHTrampolines() added new blocks to the CFG and modified invoke instructions, simply restoring the original block layout will not suffice as the new CFG has more blocks. For proper backout of the split, modify the original layout by merging in trampoline blocks immediately before their matching targets. As a result, the number of blocks increases, but the number of instructions and the function size remains the same as pre-split. Add an assertion for the number of blocks when updating a function layout. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D128696
-
Fangrui Song authored
-
Stefan Pintilie authored
Forgot to add that this test requires asserts.
-
Min-Yih Hsu authored
This feature is tested by unit test since not many places in the codebase use SubElementTypeInterface. Differential Revision: https://reviews.llvm.org/D127539
-
Min-Yih Hsu authored
Since only mutable types and attributes can go into infinite recursion inside SubElementInterface::walkSubElement, and there are only a few of them (mutable types and attributes), we introduce new traits for Type and Attribute: TypeTrait::IsMutable and AttributeTrait::IsMutable, respectively. They indicate whether a type or attribute is mutable. Such traits are required if the ImplType defines a `mutate` function. Then, inside SubElementInterface, we use a set to record visited mutable types and attributes that have been visited before. Differential Revision: https://reviews.llvm.org/D127537
-
Sam McCall authored
- when printing a shared node for the second time, don't print its children (This keeps output proportional to the size of the structure) - when printing a shared node for the second time, print its type only, not rule (for consistency with above: don't dump details of nodes twice) - don't abbreviate shared nodes, to ensure we can prune the tree there Differential Revision: https://reviews.llvm.org/D128805
-
Stefan Pintilie authored
The filter clause in the landingpad may not have a GlobalVariable operand. It may instead have a ConstantArray of operands and each operand within this ConstantArray should also be checked to see if it is a GlobalVariable. This patch add the check for the ConstantArray as well as a debug message that outputs the contents of MustKeepGlobalVariables. Reviewed By: lei, amyk, scui Differential Revision: https://reviews.llvm.org/D128287
-
rdzhabarov authored
-
Petr Hosek authored
With libgcc, we follow the behavior of GCC for backwards compatibility, only using --as-needed in the non-C++ mode. With libunwind, there are no backward compatibility requirements so we can always use --as-needed on all supported platforms. Differential Revision: https://reviews.llvm.org/D128841
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D128270
-
Daniel Bertalan authored
An ADD_ADDR rebase opcode's argument can be encoded as an immediate if the offset is less than 15 * word size. This change reduces the size of chromium_framework by 100+ KiB. Differential Revision: https://reviews.llvm.org/D128798
-
Volodymyr Sapsai authored
It helps to avoid copy-paste mistakes and makes custom code paths more noticeable. Not funnelling all diagnostic through `ODRDiagDeclError` because plan to break down `err_module_odr_violation_mismatch_decl_diff` into smaller pieces instead of making it bigger and bigger. Differential Revision: https://reviews.llvm.org/D128487
-
Corentin Jabot authored
Support was completed by D119646.
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D128802
-
Sam Estep authored
This patch deletes the now-unused `SourceLocationsLattice` class, along with its containing files and surrounding helper functions and tests. Reviewed By: xazax.hun, ymandel, sgatev, gribozavr2 Differential Revision: https://reviews.llvm.org/D128448
-
Zequan Wu authored
-
Sam Estep authored
Followup to D128352. This patch pulls the `NoopLattice` class out from the `NoopAnalysis.h` test file into its own `NoopLattice.h` source file, and uses it to replace usage of `SourceLocationsLattice` in `UncheckedOptionalAccessModel`. Reviewed By: ymandel, sgatev, gribozavr2, xazax.hun Differential Revision: https://reviews.llvm.org/D128356
-
Richard Smith authored
If a zero-sized field has a non-trivial initializer, it should prevent the overall struct initialization from being folded to a constant during IR generation. Don't just ignore zero-sized fields entirely in IR constant emission.
-
Richard Smith authored
Fixes #49725.
-
Fabian Parzefall authored
For test purposes, we want to split functions at a random split point to be able to test different layouts without relying on the profile. This patch introduces an option, that randomly chooses a split point to partition blocks of a function into hot and cold regions. Reviewed By: Amir, yota9 Differential Revision: https://reviews.llvm.org/D128773
-
rdzhabarov authored
-
Sam Estep authored
Followup to D127898. This patch updates `bugprone-unchecked-optional-access` to use the new `diagnoseCFG` function instead of just looking at the exit block. A followup to this will update the optional model itself to use a noop lattice rather than redundantly computing the diagnostics in both phases of the analysis. Reviewed By: ymandel, sgatev, gribozavr2, xazax.hun Differential Revision: https://reviews.llvm.org/D128352
-
Florian Hahn authored
ConnectProlog adds new incoming values to exit phi nodes which can change the SCEV for the phi after 20d798bd. Fix is analog to cfc741bc. Fixes #56286.
-
Muhammad Omair Javaid authored
This patch fixes LLDB API tests MakeFile.rules to allow overriding of debug symbol flags when compiling tests for Windows. Previously windows tests were forced to emit only dwarf debug symbols as majority of the tests rely on dwarf debug info. After this patch any test can override debug symbol flag by setting DEBUG_INFO_FLAG variable in its make file.
-
River Riddle authored
The reproducer is now encoded using an external resource, instead of a comment at the top of the file.
-
Muhammad Omair Javaid authored
This patch fixes inline-record.test to run on multiple platforms including Arm/Windows. Test is fixed to expect any value for id fields of functions and blocks returned by 'image lookup' command. This field can be any value as it is internally generated id.
-
Sam Estep authored
Followup to D128352. This patch pulls the `NoopLattice` class out from the `NoopAnalysis.h` test file into its own `NoopLattice.h` source file, and uses it to replace usage of `SourceLocationsLattice` in `UncheckedOptionalAccessModel`. Reviewed By: ymandel, sgatev, gribozavr2, xazax.hun Differential Revision: https://reviews.llvm.org/D128356
-
Sam Estep authored
Followup to D127898. This patch updates `bugprone-unchecked-optional-access` to use the new `diagnoseCFG` function instead of just looking at the exit block. A followup to this will update the optional model itself to use a noop lattice rather than redundantly computing the diagnostics in both phases of the analysis. Reviewed By: ymandel, sgatev, gribozavr2, xazax.hun Differential Revision: https://reviews.llvm.org/D128352
-
Sam Estep authored
This patch adds an optional `PostVisitStmt` parameter to the `runTypeErasedDataflowAnalysis` function, which does one more pass over all statements in the CFG after a fixpoint is reached. It then defines a `diagnose` method for the optional model in a new `UncheckedOptionalAccessDiagnosis` class, but only integrates that into the tests and not the actual optional check for `clang-tidy`. That will be done in a followup patch. The primary motivation is to separate the implementation of the unchecked optional access check into two parts, to allow for further refactoring of just the model part later, while leaving the checking part alone. Currently there is duplication between the `transferUnwrapCall` and `diagnoseUnwrapCall` functions, but that will be dealt with in the followup. Because diagnostics are now all gathered into one collection rather than being populated at each program point like when computing a fixpoint, this patch removes the usage of `Pair` and `UnorderedElementsAre` from the optional model tests, and instead modifies all their expectations to simply check the stringified set of diagnostics against a single string, either `"safe"` or some concatenation of `"unsafe: input.cc:y:x"`. This is not ideal as it loses any connection to the `/*[[check]]*/` annotations in the source strings, but it does still retain the source locations from the diagnostic strings themselves. Reviewed By: sgatev, gribozavr2, xazax.hun Differential Revision: https://reviews.llvm.org/D127898
-
River Riddle authored
We currently generate reproducer configurations using a comment placed at the top of the generated .mlir file. This is kind of hacky given that comments have no semantic context in the source file and can easily be dropped. This strategy also wouldn't work if/when we have a bitcode format. This commit switches to using an external assembly resource, which is verifiable/can work with a hypothetical bitcode naturally/and removes the awkward processing from mlir-opt for splicing comments and re-applying command line options. With the removal of command line munging, this opens up new possibilities for executing reproducers in memory. Differential Revision: https://reviews.llvm.org/D126447
-