- Nov 26, 2021
-
-
Jan Svoboda authored
-
Bradley Smith authored
Differential Revision: https://reviews.llvm.org/D113281
-
David Green authored
This converts a vector SETCC([0,1,2,..], splat(n), ult) to vctp n, which can be fewer instructions and prevent the need for constant pool loads. Differential Revision: https://reviews.llvm.org/D114177
-
Simon Pilgrim authored
If the ADD node is the only user of the repeated operand, then treat this as single use - allows us to peek through shl(x,1) patterns.
-
Venkata Ramanaiah Nalamothu authored
Currently the 'memory write' command allows specifying the values when writing the file contents to memory but the values are actually ignored. This patch fixes that by erroring out when values are specified in such cases. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D114544
-
Mikhail Maltsev authored
This patch implements operator<=> for std::reverse_iterator and also adds a test that checks that three-way comparison of different instantiations of std::reverse_iterator works as expected (related to D113417). Reviewed By: ldionne, Quuxplusone, #libc Differential Revision: https://reviews.llvm.org/D113695
-
Kadir Cetinkaya authored
Differential Revision: https://reviews.llvm.org/D114609
-
David Green authored
-
Kirill Bobyrev authored
Currently, BeforeExecute is called before BeginSourceFile which does not allow using PP in the callbacks. Change the ordering to ensure it is possible. This is a prerequisite for D114370. Originated from a discussion with @kadircet. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D114525
-
David Sherwood authored
Currently the generic lowering of llvm.get.active.lane.mask is done in SelectionDAGBuilder::visitIntrinsicCall and currently assumes only fixed-width vectors are used. This patch changes the code to be more generic and support scalable vectors too. I have added tests for SVE here: CodeGen/AArch64/active_lane_mask.ll although the code quality leaves a lot to be desired. The code will be improved significantly in a later patch that makes use of the SVE whilelo instruction. Differential Revision: https://reviews.llvm.org/D114541
-
Tobias Gysi authored
Use primarily matvec instead of matmul to test hoist padding. Test the hoisting only starting from already padded IR. Use one-dimensional tiling only except for the tile_and_fuse test that exercises hoisting on a larger loop nest with fill and pad tensor operations in the backward slice. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D114608
-
Balázs Kéri authored
The AST structural equivalence check did not differentiate between a struct and a struct with same name in different namespace. When type of a member is checked it is possible to encounter such a case and wrongly decide that the types are similar. This problem is fixed by check for the namespaces of a record declaration. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D113118
-
Michal Terepeta authored
Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D113854
-
Dmitry Vyukov authored
Sometimes stacks for at_exit callbacks don't include any of the user functions/files. For example, a race with a global std container destructor will only contain the container type name and our at_exit_wrapper function. No signs what global variable this is. Remember and include in reports the function that installed the at_exit callback. This should give glues as to what variable is being destroyed. Depends on D114606. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D114607
-
Dmitry Vyukov authored
Depends on D114605. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D114606
-
Dmitry Vyukov authored
Add a test for a common C++ bug when a global object is destroyed while background threads still use it. Depends on D114604. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D114605
-
Dmitry Vyukov authored
Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D114604
-
Kazu Hirata authored
-
Christudasan Devadasan authored
The combined vector register classes with both VGPRs and AGPRs are currently unallocatable. This patch turns them into allocatable as a prerequisite to enable copy between VGPR and AGPR registers during regalloc. Also, added the missing AV register classes from 192b to 1024b. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D109300
-
Fangrui Song authored
BaseCommand was picked when PHDRS/INSERT/etc were not implemented. Rename it to SectionCommand to match `sectionCommands` and make it clear that the commands are used in SECTIONS (except a special case for SymbolAssignment). Also, improve naming of some BaseCommand variables (base -> cmd).
-
Jessica Clarke authored
-
Matthias Springer authored
Pass BufferizationStep instead of BufferizationAliasInfo. Note: BufferizationState contains BufferizationAliasInfo. Differential Revision: https://reviews.llvm.org/D114512
-
Matthias Springer authored
Use composition instead of inheritance for storing dialect-specific bufferization state. This is in preparation of adding "tensor dialect"-specific bufferization state. Differential Revision: https://reviews.llvm.org/D114508
-
Matthias Springer authored
If `allowReturnMemref` is set to true, arbitrary memrefs may be returned from FuncOps. Also remove allocation hoisting code, which is only partly implemented at the moment. The purpose of this commit is to untangle `bufferize` from `aliasInfo`. (Even with this change, they are not fully untangled yet.) Differential Revision: https://reviews.llvm.org/D114507
-
Matthias Springer authored
Bufferization of function boundaries is extracted from ComprehensiveBufferize into a separate file. This will become its own build target in the future. Differential Revision: https://reviews.llvm.org/D114226
-
Fangrui Song authored
-
Fangrui Song authored
This partially reverts r315409: the description applies to LinkerScript, but not to OutputSection. The name "sectionCommands" is used in both LinkerScript::sectionCommands and OutputSection::sectionCommands, which may lead to confusion. "commands" in OutputSection has no ambiguity because there are no other types of commands.
-
Matthias Springer authored
This makes ComprehensiveBufferize entirely independent of the Affine dialect. Differential Revision: https://reviews.llvm.org/D114222
-
Mehdi Amini authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
The new code computes the content twice, but avoides the tricky std::function<uint64_t()>. Removed 13KiB code in a Release build.
-
Jeremy Morse authored
In some scenarios, usually involving NRVO, we can issue indirect DBG_VALUEs after SelectionDAG, even in instruction referencing mode (if the variable is an argument). If the corresponding argument value is spilt to the stack, then we have: * Indirection from it being on the stack, * Indirection from it being a dbg.declare or a dbg.addr. However InstrRefBasedLDV only emits one level of indirection. This patch adds the second, by adding an extra DW_OP_deref if necessary. The two tests modified fail otherwise -- they feature some NRVO, and require two levels of indirection to be correct. Differential Revision: https://reviews.llvm.org/D114364
-
Zarko Todorovski authored
Rename function to more inclusive name. Reviewed By: quinnp Differential Revision: https://reviews.llvm.org/D114029
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch renames master flag to main flag in these comments. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D114090
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch: - replaces master with main in C++style.md to match the renaming of the master branch, - removes master from `FortranIR.md` where it is superfluous, - renames a logical variable in `pre-fir-tree04.f90` containing master. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D113923
-
Jeremy Morse authored
This is a performance patch -- LiveDebugVariables can behave quadratically if a lot of debug instructions are inserted back into the same place, and we have to repeatedly step-over hte ones we've already inserted. To get around it, whenever we insert a debug instruction at a slot index, check whether there are more debug instructions to insert at this point, and insert them too. That avoids the repeated lookup and stepping through. It relies on the container for unlinked debug instructions being recorded in-order, which is how LiveDebugVariables currently does it. Differential Revision: https://reviews.llvm.org/D114587
-
Louis Dionne authored
When testing with sanitizers enabled, we need to link against a plethora of system libraries. Using `-nodefaultlibs` like we used to breaks this, and we would have to add all these system libraries manually, which is not portable and error prone. Instead, stop using `-nodefaultlibs` so that we get the libraries added by default by the compiler. The only caveat with this approach is that we are now relying on the fact that `-L <path-to-local-libunwind>` will cause the just built libunwind to be selected before the system implementation (either of libunwind or libgcc_s.so), which is somewhat fragile. This patch also turns the 32 bit multilib build into a soft failure since we are in the process of removing it anyway, see D114473 for details. This patch is incompatible with the 32 bit multilib build because Ubuntu does not provide a proper libstdc++ for 32 bits, and that is required when running with sanitizers enabled. Differential Revision: https://reviews.llvm.org/D114385
-
Florian Hahn authored
This fixes a build failure with LLVM_ENABLE_THREADS=Off.
-
Michal Terepeta authored
Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D114549
-