- Sep 13, 2022
-
-
Matthias Gehre authored
Also remove new-pass-manager version of ExpandLargeDivRem because there is no way yet to access TargetLowering in the new pass manager. Differential Revision: https://reviews.llvm.org/D133691
-
Jay Foad authored
Simplify extended add/sub (with carry-in and carry-out) to add/sub with carry (with carry-out only) if carry-in is known to be zero. Differential Revision: https://reviews.llvm.org/D133702
-
- Sep 12, 2022
-
-
Kazu Hirata authored
This patch fixes a couple of warnings by switching to has_value/value: mlir/lib/Dialect/Vector/IR/VectorOps.cpp:529:28: error: 'hasValue' is deprecated: Use has_value instead. [-Werror,-Wdeprecated-declarations] mlir/lib/Dialect/Vector/IR/VectorOps.cpp:533:48: error: 'getValue' is deprecated: Use value instead. [-Werror,-Wdeprecated-declarations]
-
Katherine Rasmussen authored
Write a semantics test for the atomic intrinsic subroutine, atomic_fetch_and. Reviewed By: rouson Differential Revision: https://reviews.llvm.org/D133506
-
Simon Pilgrim authored
This was achieved with an updated version of the 'cost-tables vs llvm-mca' script D103695
-
Oleg Shyshkov authored
This is the first step in replacing interator_type from strings with enums in Vector and Linalg dialect. This change adds IteratorTypeAttr and uses it in ContractionOp. To avoid breaking all the tests, print/parse code has conversion between string and enum for now. There is a shared code in StructuredOpsUtils.h that expects iterator types to be strings. To break this dependancy, this change forks helper function `isParallelIterator` and `isReductionIterator` to utils in both dialects and adds `getIteratorTypeNames()` to support backward compatibility with StructuredGenerator. In the later changes, I plan to add a similar enum attribute to Linalg. Differential Revision: https://reviews.llvm.org/D133696
-
Louis Dionne authored
This will be required in order to add a CI job running the LLDB data formatters.
-
Florian Hahn authored
Adding the pre-header to CSEBlocks ensures instructions are CSE'd even after hoisting. This was original discovered by @atrick a while ago. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D133649
-
Jun Zhang authored
If the declaration of an identifier has block scope, and the identifier has external or internal linkage, the declaration shall have no initializer for the identifier. Clang now gives a more suitable diagnosis for this case. Fixes https://github.com/llvm/llvm-project/issues/57478 Signed-off-by:
Jun Zhang <jun@junz.org> Differential Revision: https://reviews.llvm.org/D133088
-
Simon Pilgrim authored
-
Simon Pilgrim authored
There's no difference between generic/bmi/lzcnt targets atm
-
Joe Nash authored
NFC. Pre-commits test changes to have a separate CHECK line where GFX11 behavior will diverge from previous subtargets in a future patch.
-
Joe Nash authored
Change the check name from GFX10 to GFX10Plus to refect its actual usage
-
Alexey Bataev authored
If the reused scalars are clustered, i.e. each part of the reused mask contains all elements of the original scalars exactly once, we can reorder those clusters to improve the whole ordering of of the clustered vectors. Differential Revision: https://reviews.llvm.org/D133524
-
Joe Nash authored
NFC. This test contains a good amount of verbose compiler output as well as numbers which depend on the number of registers defined and are difficult to update. So autogenerate the test.
-
Matt Arsenault authored
Forgot to commit regenerated test
-
Matt Arsenault authored
This was only trying this to relax register class constraints, but this can also help if there are subranges involved. This solves a compilation failure for AMDGPU when there is high pressure created by large register tuples. If one virtual register is using most of the available budget, we need to be able to evict subranges. This solves the immediate failure, but this solution leaves a lot to be desired. In the relevant testcases, we have 32-element tuples but most of the uses are operations on 1 element subranges of it. What we're now getting is a spill and restore of the full 1024 bits and an extract of the used 32-bits. It would be far better if we introduced a copy to a new virtual register with a smaller register class and used narrower spills. Furthermore, we could probably do a better job if the allocator were to introduce new subranges where none previously existed in the highest pressure scenarios. The block and region splits should also try to split specific subranges out. The mve-vst3.ll test changes looks like noise to me, but instruction count increased by one. mve-vst4.ll looks like a solid improvement with several 16-byte spills eliminated. splitkit-copy-live-lanes.mir also shows a solid reduction in total spill count. This could use more tests but it's pretty tiring to come up with cases that fail on this.
-
Matt Arsenault authored
Currently there isn't a generic way to get a smaller register class that can be produced from a subregister of a larger class. Replaces a manually implemented version for AMDGPU. This will be used to improve subregister support in the allocator.
-
Pavel Samolysov authored
-
Pavel Samolysov authored
Some uses of std::make_pair and the std::pair's first/second members in the ScheduleDAGRRList.cpp file were replaced with using of the vector's emplace_back along with structure bindings from C++17.
-
Sander de Smalen authored
This patch adds a utility class that will be used in subsequent patches for parsing the function/callsite attributes and determining whether changes to PSTATE.SM are needed, or whether a lazy-save mechanism is required. It also implements some of the restrictions on the SME attributes in the IR Verifier pass. More details about the SME attributes and design can be found in D131562. Reviewed By: david-arm, aemerson Differential Revision: https://reviews.llvm.org/D131570
-
Matt Arsenault authored
-
Matt Arsenault authored
Previously this was assuming piontsToConstantMemory implies dereferenceable.
-
Muhammad Omair Javaid authored
pdb-natvis test fails on Arm Windows as generated byte sizes and crc differ for Windows on Arm. This patch fixes the test to make it pass on Arm/Windows.
-
Clement Courbet authored
This allows failing more gracefully.
-
Pavel Samolysov authored
-
Matt Arsenault authored
Theoretically improves compile time for targets with many overlapping registers
-
Matt Arsenault authored
There shouldn't be more than a small handful of hints at most.
-
Jonas Hahnfeld authored
If CLANG_LINK_CLANG_DYLIB, clang_target_link_libraries ignores all indivial libraries and only links clang-cpp. As LLVMTestingSupport is separate, pass it via target_link_libraries directly.
-
J. Ryan Stinnett authored
The inline code in the description of `DW_OP_LLVM_arg` wasn't terminating correctly, leading to more text displayed as code than intended. This fixes that up and adds a superscript as a tiny embellishment.
-
Muhammad Usman Shahid authored
The diagnostics here are correct, but the note is really silly. It talks about reinterpret_cast in C code. So rewording it for c mode by using another %select{}. ``` int array[(long)(char *)0]; ``` previous note: ``` cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression ``` reworded note: ``` this conversion is not allowed in a constant expression ``` Differential Revision: https://reviews.llvm.org/D133194 -
zhongyunde authored
According https://discourse.llvm.org/t/memoryssa-does-the-accessedbetween-support-scalable-vector-pointer/65052, scalable vector support in BasicAA is currently essentially limited, and should be improved effectively for a constant offset GEP if the scalable index is zero, eg: getelementptr <vscale x 4 x i32>, ptr %p, i64 0, i64 %i Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D133567
-
Simon Pilgrim authored
They shouldn't be happening after XOP shift costs - AVX2 shift supports takes preference over XOP for everything but vXi8 shifts - the improvement is pretty limited as it only affects bdver4 targets but it does help clean up a fraction of the messy shift cost logic....
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Mehdi Amini authored
-
David Green authored
-
David Spickett authored
The test added in 739b69e6 only checked that X19 triggers the explanation, also check W19.
-
lorenzo chelini authored
-
David Spickett authored
Fixes #50098 LLVM uses X19 as the frame base pointer, if it needs to. Meaning you can get warnings if you clobber that with inline asm. However, it doesn't explain why. The frame base register is not part of the ABI so it's pretty confusing why you get that warning out of the blue. This adds a method to explain a reserved register with X19 as the first one. The logic is the same as getReservedRegs. I could have added a return parameter to isASMClobberable and friends but found that there's a lot of things that call isReservedReg in various ways. So while one more method on the pile isn't great design, it is simpler right now to do it this way and only pay the cost if you are actually using a reserved register. Reviewed By: lenary Differential Revision: https://reviews.llvm.org/D133213
-