- Mar 23, 2023
-
-
Thomas Lively authored
Previously epilogues were incorrectly inserted after indirect tail calls because they did not have the `isTerminator` property. Add that property and test that they get correct epilogues. To be safe, also add other properties that were defined for direct tail calls. Differential Revision: https://reviews.llvm.org/D146569
-
Mark de Wever authored
This has been done using the following commands find libcxx/test -type f -exec perl -pi -e 's|^([^/]+?)((?<!::)ptrdiff_t)|\1std::\2|' \{} \; find libcxx/test -type f -exec perl -pi -e 's|^([^/]+?)((?<!::)max_align_t)|\1std::\2|' \{} \; The std module doesn't export declarations in the global namespaace., This is a preparation for that module. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D146550 -
Arthur Eubanks authored
Resolves a TODO. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D146599
-
Thomas Lively authored
A follow-on commit will add tests to this file and using the update_llc_test_checks script will make that easier. Differential Revision: https://reviews.llvm.org/D146568
-
Caroline Concatto authored
In the 2022-12 release of the A64 ISA it was updated that the assembler must also accept predicate-as-counter register names for the source predicate register and the destination predicate register for: * *MOV: Move predicate (unpredicated)* * *LDR (predicate): Load predicate register* * *STR (predicate): Store predicate register* Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D146311
-
Luke Lau authored
The previous test case stored the result of a deinterleaved load and add into the same source address, which resulted in some scatters which we weren't testing for and made the tests harder to understand. Store it at a separate address, which will make the tests easier to read when the cost model is changed after D145085 is landed Reviewed By: reames Differential Revision: https://reviews.llvm.org/D146442
-
Caleb Zulawski authored
This patch adds some more efficient lowering for vecreduce.min/max under NEON, using sequences of pairwise vpmin/vpmax to reduce to a single value. This nearly resolves issues such as #50466, #40981, #38190. Differential Revision: https://reviews.llvm.org/D146404
-
- Mar 22, 2023
-
-
Simon Pilgrim authored
Extends 1bb95a3a to combine on AVX512 targets where the vXi1 type is legal Continues work on addressing Issue #53419
-
Jun Zhang authored
Signed-off-by:Jun Zhang <jun@junz.org>
-
Doru Bercea authored
-
LLVM GN Syncbot authored
-
Nikita Popov authored
This reverts commit d6ad4f01. Fails to build on at least gcc 12.2: /home/npopov/repos/llvm-project/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp:482:1: error: no declaration matches ‘ContextNode<DerivedCCG, FuncTy, CallTy>* CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::getNodeForInst(const CallInfo&)’ 482 | CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::getNodeForInst( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/npopov/repos/llvm-project/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp:393:16: note: candidate is: ‘CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::ContextNode* CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::getNodeForInst(const CallInfo&)’ 393 | ContextNode *getNodeForInst(const CallInfo &C); | ^~~~~~~~~~~~~~ /home/npopov/repos/llvm-project/llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp:99:7: note: ‘class CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>’ defined here 99 | class CallsiteContextGraph { | ^~~~~~~~~~~~~~~~~~~~
-
Johannes de Fine Licht authored
Support inlining of function calls with the byval attribute on function arguments by copying the pointee into a newly alloca'ed pointer at the callsite before inlining. The alignment attribute is not yet taken into account. Reviewed By: ftynse, gysit Differential Revision: https://reviews.llvm.org/D146616
-
LLVM GN Syncbot authored
-
Nikita Popov authored
Report a change when removing a true/false assume. Fixes https://github.com/llvm/llvm-project/issues/61574.
-
Luo, Yuanke authored
Fix some bugs and reland e4c1dfed and 614c63be. 1. Run argument stack rebase pass before the reserved physical register is finalized. 2. Add LEA pseudo instruction to prevent the instruction being eliminated. 3. Don't support X32.
-
OCHyams authored
updateForDeletedStore updates the assignment tracking debug info for a store that is about to be deleted by mem2reg. For each variable backed by the target alloca, if a dbg.assign exists it is kept (well - it's downgraded to a dbg.value). A dbg.value is inserted if there's not a linked dbg.assign for a variable which is backed by the target alloca. This patch fixes a bug whereby a store with a linked dbg.assign that describes a fragment different to the one linked to the alloca was not counted for the variable, leading to both keeping the dbg.assign (downgrading it) and inserting a new dbg.value. Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D146299
-
OCHyams authored
A DebugVariableAggregate is a DebugVariable that discards FragmentInfo; it represents a whole variable instance. Reviewed By: StephenTozer Differential Revision: https://reviews.llvm.org/D146298
-
LLVM GN Syncbot authored
-
Teresa Johnson authored
Support for building, printing, and displaying CallsiteContextGraph which represents the MemProf metadata contexts. Uses CRTP to enable support for both IR (regular LTO) and summary (ThinLTO). This patch includes the support for building it in regular LTO mode (from memprof and callsite metadata), and the next patch will add the handling for building it from ThinLTO summaries. Also includes support for dumping the graph to text and to dot files. Follow-on patches will contain the support for cloning on the graph and in the IR. The graph represents the call contexts in all memprof metadata on allocation calls, with nodes for the allocations themselves, as well as for the calls in each context. The graph is initially built from the allocation memprof metadata (or summary) MIBs. It is then updated to match calls with callsite metadata onto the nodes, updating it to reflect any inlining performed on those calls. Each MIB (representing an allocation's call context with allocation behavior) is assigned a unique context id during the graph build. The edges and nodes in the graph are decorated with the context ids they carry. This is used to correctly update the graph when cloning is performed so that we can uniquify the context for a single (possibly cloned) allocation. Depends on D140786. Differential Revision: https://reviews.llvm.org/D140908
-
Stephen Tozer authored
Adds a pair of options for Dexter that allow the user to specify a timeout duration. These options are: * --timeout-total: Times out if the total run-time of the debugger session exceeds <timeout-total> seconds. * --timeout-breakpoint: Times out if the time without hitting a breakpoint exceeds <timeout-breakpoint> seconds. Reviewed By: Orlando Differential Revision: https://reviews.llvm.org/D145063
-
Saleem Abdulrasool authored
Add some documentation on the flags and the process by which clang identifies the headers and libraries for the Windows environment. It should identify the flags and their interactions as well as the order in which the various sources of information are consulted. Differential Revision: https://reviews.llvm.org/D146165 Reviewed By: hans, mstorjo
-
Tom Eccles authored
This flag instructs flang-new to use the new HLFIR lowering. It is marked as experimental and not included in --help. This was added to make it more convenient to test the performance of code generated by the HLFIR lowering. Extra diffs are from running clang-format on CLOptions.inc (which was being forced by CI). Differential Revision: https://reviews.llvm.org/D146278
-
Nikita Popov authored
-
Florian Hahn authored
-
Dmitry Chernenkov authored
-
Nicolas Vasilache authored
The default behavior of getProjectedMap may be surprising as it implicitly compresses the dims and the unused symbols. Make these explicit in the API and refactor to more idiomatic implementations with better reuse. Differential Revision: https://reviews.llvm.org/D146611
-
Alexander Belyaev authored
Differential revision: https://reviews.llvm.org/D146558
-
Zhongyunde authored
The new IR with And removes a use of the input variable, which is better for analysis. Fix https://github.com/llvm/llvm-project/issues/60818 Reviewed By: nikic, spatel Differential Revision: https://reviews.llvm.org/D145846
-
Zhongyunde authored
-
Florian Hahn authored
This avoids having to cast the result of the builder to GetElementPtrInst.
-
Serguei Katkov authored
LoopPredication may introduce undefined behavior.
-
Uday Bondhugula authored
Fix assumption on memref element type being int/float in memref elt size related method and affine data copy generate. Fixes https://github.com/llvm/llvm-project/issues/61310 Differential Revision: https://reviews.llvm.org/D146495
-
Nikita Popov authored
-
Nikita Popov authored
Clarify that this is only about immediate undefined behavior, not about undef or poison.
-
Sam McCall authored
Differential Revision: https://reviews.llvm.org/D146527
-
David Spickett authored
Fixes #61605
-
David Spickett authored
Prior to this the only check was that we did not print this message when reading registers that should exist. I thought there was an indentation bug here so I wrote a test for it. There is not, but we could do with the coverage anyway. Reviewed By: rupprecht Differential Revision: https://reviews.llvm.org/D145940
-
Tobias Gysi authored
The revision adds the llvm.experimental.noalias.scope.decl intrinsic to the LLVM dialect and updates the import and export accordingly. Reviewed By: Dinistro Differential Revision: https://reviews.llvm.org/D146504
-
Matthias Springer authored
The constructor of `OperationFolder` takes a listener. Therefore, the remaining API should not take any builder/rewriters. This could lead to double notifications in case a listener is attached to the builder/rewriter. As an internal cleanup, `OperationFolder` now has an `IRRewriter` instead of a `RewriterBase::Listener`. In most cases, `OperationFolder` no longer has to notify/deal with listeners. This is done by the rewriter. Differential Revision: https://reviews.llvm.org/D146134
-