- Mar 23, 2023
-
-
Craig Topper authored
Remove now redundant fake ABI names from vector registers. This also fixes a crash that occurs if you use fflags as an instruction operand in the assembly and use -debug. It's not a valid register for any instruction since this wouldn't be common. It doesn't have an ABI name so it crashes the register printing in the debug output.
-
Craig Topper authored
Similar to what we do for the LMUL>1 register classes. The printing is only working today because the segment registers have "ABI" names set to their base register name.
-
Luke Hutton authored
Adds a canonicalizer for the concatenate->slice sequence where an output of slice can be replaced with an input of concatenate. This is useful in the context of operations with complex inputs and outputs that are legalized from a framework such as TFL. For example, a TFL graph (FFT->FFT) will be legalized to the following TOSA graph: <complex input> / \ slice slice \ / FFT / \ -+ concatenate | / \ | Redundant slice slice | \ / -+ FFT / \ concatenate | <complex output> Concatenate and slice operations at the boundaries of the graph are useful as they maintain the correct correspondance of input/output tensors to the original TFL graph. However, consecutive complex operations will result in redundant concatenate->slice sequences which should be removed from the final TOSA graph. The canonicalization does not currently handle dynamic types. Signed-off-by:Luke Hutton <luke.hutton@arm.com> Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D144545
-
Craig Topper authored
ConstantInt::getSigned calls ConstantInt::get with the IsSigned flag set to true. That flag normally defaults to false. For always signed constants the code base is not consistent about whether it uses ConstantInt::getSigned or ConstantInt::get with IsSigned set to true. And it's not clear how to decide which way to use. By making getSigned inline, both ways should generate the same code in the end. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D146598
-
Benjamin Maxwell authored
This allows the DWARFDebugLine::SectionParser to try parsing line tables at 4 or 8-byte boundaries if the unaligned offset appears invalid. If aligning the offset does not reduce errors the offset is used unchanged. This is needed for llvm-dwarfdump to be able to extract the line tables (with --debug-lines) from binaries produced by certain compilers that like to align each line table in the .debug_line section. Note that this alignment does not seem to be invalid since the units do point to the correct line table offsets via the DW_AT_stmt_list attribute. Differential Revision: https://reviews.llvm.org/D143513
-
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.
-