- Apr 27, 2022
-
-
Sanjay Patel authored
We can always replace the undef elements in a vector constant with regular constants to get rid of the freeze: https://alive2.llvm.org/ce/z/nfRb4F The select diffs show that we might do better by adjusting the logic for a frozen select condition. We may also want to refine the vector constant replacement to consider forming a splat. Differential Revision: https://reviews.llvm.org/D123962
-
Craig Topper authored
This tests the Zbp instructions that change immediate range between riscv32 and riscv64. We were only testing them for riscv32 before.
-
Vasileios Porpodas authored
Before this patch `Args` was used to pass a broadcat's arguments by SLP. This patch changes this. `Args` is now used for passing the operands of the shuffle. Differential Revision: https://reviews.llvm.org/D124202
-
Augie Fackler authored
This continues the push away from hard-coded knowledge about functions towards attributes. We'll use this to annotate free(), realloc() and cousins and obviate the hard-coded list of free functions. Differential Revision: https://reviews.llvm.org/D123083
-
Craig Topper authored
We were only testing the shared instruction mnemonics in rv32 tests. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D124460
-
Peter Klausler authored
Semantics now needs to preserve the parse trees from module files, in case they contain parameterized derived type definitions with component initializers that may require re-analysis during PDT instantiation. Save them in the SemanticsContext. Differential Revision: https://reviews.llvm.org/D124467
-
Jay Foad authored
-
LLVM GN Syncbot authored
-
Jeffrey Tan authored
This diff introduces a new symbol on-demand which skips loading a module's debug info unless explicitly asked on demand. This provides significant performance improvement for application with dynamic linking mode which has large number of modules. The feature can be turned on with: "settings set symbols.load-on-demand true" The feature works by creating a new SymbolFileOnDemand class for each module which wraps the actual SymbolFIle subclass as member variable. By default, most virtual methods on SymbolFileOnDemand are skipped so that it looks like there is no debug info for that module. But once the module's debug info is explicitly requested to be enabled (in the conditions mentioned below) SymbolFileOnDemand will allow all methods to pass through and forward to the actual SymbolFile which would hydrate module's debug info on-demand. In an internal benchmark, we are seeing more than 95% improvement for a 3000 modules application. Currently we are providing several ways to on demand hydrate a module's debug info: * Source line breakpoint: matching in supported files * Stack trace: resolving symbol context for an address * Symbolic breakpoint: symbol table match guided promotion * Global variable: symbol table match guided promotion In all above situations the module's debug info will be on-demand parsed and indexed. Some follow-ups for this feature: * Add a command that allows users to load debug info explicitly while using a new or existing command when this feature is enabled * Add settings for "never load any of these executables in Symbols On Demand" that takes a list of globs * Add settings for "always load the the debug info for executables in Symbols On Demand" that takes a list of globs * Add a new column in "image list" that shows up by default when Symbols On Demand is enable to show the status for each shlib like "not enabled for this", "debug info off" and "debug info on" (with a single character to short string, not the ones I just typed) Differential Revision: https://reviews.llvm.org/D121631
-
Vasileios Porpodas authored
This test is no longer necessary as it is a subset of: llvm/test/Analysis/CostModel/AArch64/shuffle-load.ll Differential Revision: https://reviews.llvm.org/D124456
-
Matt Arsenault authored
Just clone all the virtual registers instead of looking for def operands. This preserves the register values used, simplifying the rest of the code. This avoids needing to expose the register map to target code.
-
Matt Arsenault authored
Previously the specific values used for fixed frame indexes was in reverse order in the cloned function from the original, and a map was used to adjust all frame indexes to the potentially new values. Insert the fixed objects in reverse to avoid this. This simplifies other code, since now we don't need to track down all frame indexes. This will allow targets that store frame indexes in MachineFunctionInfo to simply copy the values. Note this isn't directly observable in the test since the resulting MIR print/parse can shuffle the IDs around (in particular the final serialization implicitly strips out dead objects).
-
Yi Zhang authored
This change borrows the ideas from `computeExpanded/CollapsedLayoutMap` and computes the dynamic strides at runtime for the memref descriptors. Differential Revision: https://reviews.llvm.org/D124001
-
Peter Klausler authored
A recent change assumed that the native C++ "long double" maps to a Fortran data type; but this turns out to not be true for ppc64le, which uses "double-double" for "long double". This is a quick patch to get the ppc64le flang build bot back up. A better fix that either uses HostTypeExists<> or replaces "long double" with "ieee128_t" (or some other solution) is expected to follow soon. Differential Revision: https://reviews.llvm.org/D124423
-
Tanya Lattner authored
-
- Apr 26, 2022
-
-
Shao-Ce SUN authored
Based on D123467. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D123653
-
Mark de Wever authored
The tests are adapted to the output produced on Linux. Reviewed By: #libc, philnik, ldionne Differential Revision: https://reviews.llvm.org/D124331
-
Nikita Popov authored
-
Jay Foad authored
-
Chris Bieneman authored
This removes an unused local variable that was causing a warning to be emitted.
-
Jonas Paulsson authored
A struct like { float a; int :0; } should per the SystemZ ABI be passed in a GPR, but to match a bug in GCC it has been passed in an FPR (see 759449c7). GCC has now corrected the C++ ABI for this case, and this patch for clang follows suit. Reviewed By: Ulrich Weigand Differential Revision: https://reviews.llvm.org/D122388 -
Nikita Popov authored
Test cases with element type mismatch, some of which can still be combined.
-
Chris Bieneman authored
Switch statements that cover all cases should not have a `default` case. When a switch covers all cases and includes a `default` case, clang emits a diagnostic. Omitting the `default` case allows the compiler to instead emit a diagnostic on unhandled enum values. This change removes default cases from all the places that they shouldn't be, and adds a missing enum case for one switch statement that wasn't covering all values.
-
Chris Bieneman authored
Clang issues a warning on class/struct mismatch because the MSVC ABI varries for classes and structs.
-
Joseph Huber authored
Summary: A previous patch updated the path searching in the linker wrapper. I made an error and caused `lld`, which is necessary to link AMDGPU images, to not be found on some systems. This patch fixes this by correctly searching that linker-wrapper's binary path first again.
-
Jeremy Morse authored
This was reverted twice, in 987cd7c3 and 13815e8c. The latter stemed from not accounting for rare register classes in a pre-allocated array, and the former from an array not being completely initialized, leading to asan complaining.
-
Igor Kudrin authored
This reorganizes the code as a preparation for D123865: * Use more descriptive names for variables * Simplify a condition by use an already calculated value for `MaxPeelCount` * Remove a duplicate log entry * Report basic values for loop costs Differential Revision: https://reviews.llvm.org/D124388
-
Igor Kudrin authored
Differential Revision: https://reviews.llvm.org/D123864
-
Yaxun (Sam) Liu authored
Fix the misleading diag msg as the option is ignored for a particular offload arch only. Reviewed by: Artem Belevich Differential Revision: https://reviews.llvm.org/D124396
-
Igor Chebykin authored
Some tests failed for NVPTX target, but it seems that NVPTX will be fixed and the tests will pass. So, just mark the tests as XFAIL Differential Revision: https://reviews.llvm.org/D124125
-
Igor Chebykin authored
Some generic tests are not supported by the nvptx now. Moreover, they are no plans to fix the tested features in nvptx. So, suggest to mark them as UNSUPPORTED Differential Revision: https://reviews.llvm.org/D123928
-
Krystian Kuzniarek authored
Introduced by 23a5090c, this style option marker indicated 'clang-format 9', though its respective option was available in an earlier release. Differential Revision: https://reviews.llvm.org/D123299
-
Paul Robinson authored
Commit 5c90ecae added some analyzer option checking, but a typo meant it was redundantly checking PS4 and not adding checking for PS5. With the test corrected, it identified the necessary driver updates, added in this commit.
-
Ilya Biryukov authored
Add support for concepts and requires expression in the clang index. Genarate USRs for concepts. Also change how `RecursiveASTVisitor` handles return type requirement in requires expressions. The new code unpacks the synthetic template parameter list used for storing the actual expression. This simplifies implementation of the indexing. No code seems to depend on the original traversal anyway and the synthesized template parameter list is easily accessible from inside the requires expression if needed. Add tests in the clangd codebase. Fixes https://github.com/clangd/clangd/issues/1103. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D124441
-
Erich Keane authored
See the discussion on D123319. Default calling convention on Windows32 bit is to have 'this-call' for member functions, so add a wildcard to take care of that. Also, one of the FileCheck 'match' flags was incorrect, so fix that too.
-
Florian Hahn authored
Check if the value of a ConstantInt is small enough to be used for solving before calling getSExtValue. Fixes #55085
-
Liqiang Tao authored
Since the size of most of SCC's is 1, the PriorityInlineOrder would not change the inline order in SCC inliner. Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D123608
-
Alex Zinenko authored
Classes derived from TransformState::Extension may need access to the parent state.
-
Florian Hahn authored
At the moment, unfeasible default destinations are not handled properly in removeNonFeasibleEdges. So far, only unfeasible cases are removed, but later code expects unreachable blocks to have no predecessors. This is causing the crash reported in PR49573. If the default destination is unfeasible it won't be executed. Create a new unreachable block on demand and use that as default destination. Note that at the moment this only is relevant for cases where resolvedUndefsIn marks the first case as executable. Regular switch handling has a FIXME/TODO to support determining whether the default case is feasible or not. Fixes #48917. Differential Revision: https://reviews.llvm.org/D113497
-
Nathan Sidwell authored
Every non-testcase use of OutputBuffer contains code to allocate an initial buffer (using either 128 or 1024 as initial guesses). There's now no need to do that, given recent changes to the buffer extension heuristics -- it allocates a 1k(ish) buffer on first need. Just pass in a buffer (if any) to the constructor. Thus the OutputBuffer's ownership of the buffer starts at its own lifetime start. We can reduce the lifetime of this object in several cases. That new constructor takes a 'size_t *' for the size argument, as all uses with a non-null buffer are passing through a malloc'd buffer from their own caller in this manner. The buffer reset member function is never used, and is deleted. The original buffer initialization code would return a failure code if that first malloc failed. Existing code either ignored that, called std::terminate with a FIXME, or returned an error code. But that's not foolproof anyway, as a subsequent buffer extension failure ends up calling std::terminate. I am working on addressing that unfortunate failure mode in a manner more consistent with the C++ ABI design. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D122604
-