- Feb 05, 2023
-
-
Simon Pilgrim authored
-
David Green authored
Legalization for i8 buildvectors is available (as in 615695de), but selection would fail due to i8 types not being handled. This adds basic support like other type sizes. Differential Revision: https://reviews.llvm.org/D143002
-
- Feb 04, 2023
-
-
Simon Pilgrim authored
Improves codegen for v2i64 cases, similar to what we already do for all_of(setcc(x,y,eq))
-
Simon Pilgrim authored
-
Matthias Springer authored
The "then" region allows only a single block. The same should be the case for the "else" region. Differential Revision: https://reviews.llvm.org/D143253
-
Remi Segard authored
This enables writing patterns with mutliple output operands in the input pattern for GlobalISel
-
Simon Pilgrim authored
The v2i64 case has more scope for optimization with ne than ugt cases, and we already have very similar icmp sgt coverage via the v4i64 tests
-
Samuel Thibault authored
Summary: The previous patch also needed to apply this to the other AMDGPU plugin, this will be removed soon but it should be correct while it's here at least.
-
Samuel Thibault authored
Previously, on non-Linux, amdgpu would get enabled whatever the CPU architecture. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D143017
-
David Green authored
-
Matt Arsenault authored
Prevent a future patch from introducing an infinite combine loop.
-
Paul Walker authored
We have isel patterns to allow predicated operations to emit unpredicated instructions when the predicate is all true. However, the predicated operations named #_PRED have no requirement for the result of the inactive lanes and so when those operations have no side effects, floating point exceptions for example, we can also safely emit unpredicated instructions. Doing this allows better register allocation, instruction scheduling and also enables more usage of instructions that take immediate operands. NOTE: This patch does not convert all possible instances but instead focuses on the cases that are testable once D141937 lands. Depends on D141937 Differential Revision: https://reviews.llvm.org/D141938
-
NAKAMURA Takumi authored
Revert "[AArch64] Unconditionally use DW_EH_PE_indirect|DW_EH_PE_pcrel personality/lsda/ttype encodings" It causes failurs in clang-interpreter. This reverts commit 565a1fb1, aka llvmorg-17-init-1048-g565a1fb1
-
Simon Pilgrim authored
I'm intending to add generic legalization in the future, but for now I've added basic support to targets that have the necessary MIN/MAX support to expand to SUB(MAX(X,Y),MIN(X,Y)). This exposed a couple of issues with the DAG combines - in particular we need to catch trunc(abs(sub(ext(x),ext(y)))) patterns earlier before the SSE/AVX vector trunc expansion folds trigger. Differential Revision: https://reviews.llvm.org/D142288
-
NAKAMURA Takumi authored
Type hint `list[foo]` isn't accepted by python-3.8 (Seems requires `typing.List`)
-
Simon Pilgrim authored
More closely match the actual output and should make the merge with D127115 easier.
-
Phoebe Wang authored
Reviewed By: LuoYuanke, RKSimon Differential Revision: https://reviews.llvm.org/D143170
-
Jessica Paquette authored
machine-outliner-mapping-stats.mir
-
Han-Kuan Chen authored
[RISCV] Don't use constantpool for floating-point value if the value can be easily constructed by integer sequence and a floating-point move. In addition, this commit does the following combine vfmv.v.f + fmv.[dhw].x -> vmv.v.x vfmv.s.f + fmv.[dhw].x -> vmv.s.x vfmerge.vfm + fmv.[dhw].x -> vmerge.vxm Differential Revision: https://reviews.llvm.org/D142953
-
Jessica Paquette authored
Add a test for statistics as well. The mapper size stats were nested in a loop unnecessarily. Move them out. Give existing stats better names, and add one which also tracks the number of sentinels added.
-
Fangrui Song authored
Unused in the wild.
-
Jessica Paquette authored
Adding debug output to improve outliner debuggability + testability. Move `nooutline` attribute test into the new debug output test.
-
Diego Caballero authored
This reverts commit c7b1176e.
-
Diego Caballero authored
This reverts commit 62570b72.
-
Mircea Trofin authored
`os.mkfifo` may not be supported everywhere (e.g. windows).
-
Mircea Trofin authored
Supporting 3.6 requires a bit too much of a change in the mlgo test python scripts.
-
Sebastian Pop authored
GCC on AArch64 uses DW_CFA_GNU_NegateRAState for return address signing. Differential Revision: https://reviews.llvm.org/D142572
-
Shengchen Kan authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D143307
-
Mariusz Borsa authored
The fix only affects Darwin, but to write the test I had to modify the MemoryMappingLayout class which is used by all OSes, to allow for mocking of image header (this change should be NFC). Hence no [Darwin] in the subject so I can get more eyes on it. While looking for a memory gap to put the shadow area into, the sanitizer code scans through the loaded images, and for each image it scans through its loader command to determine the occupied memory ranges. While doing so, if the 'segment load' (kLCSegment) loader comand is encountered, the command scanning function returns success (true), but does not decrement the command list iterator counter. The result is that the function is called again and again, with the iterator counter now being too high. The command scanner keeps updating the loader command pointer, by using the command size field. If the loop counter is too high, the command pointer lands into unintended area ( beyond <header addr>+sizeof(mac_header64)+header->sizeofcmds ), and result depends on the random content found there. The random content interpreted as loader command might contain a large integer value in the cmdsize field - this value is added to the current loader command pointer, which might now point to an inaccessible memory address. It can occasionally result in a crash if it happens to run beyond the mapped memory segment. Note that when the area after the loader command list contains zeros or small integers only, the loop will end normally and the problem will go unnoticed. So it happened until now since having a some big value after the header area, falling into command size field is a pretty rare situation. The fix makes sure that the iterator counter gets updated when the segment load (kLCSegment) loader command is found too, and in the same code location so the updates will always go together. Undo the changes in the sanitizer_procmaps_mac.cpp to see the test failing. rdar://101161047 rdar://102819707 Differential Revision: https://reviews.llvm.org/D142164
-
Mircea Trofin authored
-
Mircea Trofin authored
-
Thomas Raoux authored
Change map_nested_foreach_to_threads to ignore foreach_thread not mapping to threads, this will allow us to call mapNestedForeachToThreadsImpl with different set of ids to lower multiple levels. Also adds warpIds attributes. Differential Revision: https://reviews.llvm.org/D143298
-
Mircea Trofin authored
This reverts commit a772f0bb. The main problem was related to how we handled `dbgs()` from the hosted compiler. Using explicit `subprocess.communicate`, and not relying on dbgs() being flushed until the end appears to address the problem. Also some fixes due to some bots running older pythons, so we can't have nice things like `int | float` and such.
-
Jessica Paquette authored
This had no debug output. Since it was committed as NFC, it had no testcase. The me of today was nerdsniped by the me of 6 years ago and decided that this ought to have a testcase and some debug output.
-
Adrian Prantl authored
-
Mehdi Amini authored
-
Jessica Paquette authored
`Mapper.UnsignedVec.begin()` never changes throughout the call to `erase_if`, so no need to recalculate it. Also drop some redundant braces.
-
Jessica Paquette authored
If the size is < 2, then we just break anyway.
-
Jessica Paquette authored
We have `using llvm`, we don't need to say `llvm::`.
-
Jessica Paquette authored
The MachineOutliner + SuffixTree both used `std::vector` everywhere because I didn't know any better at the time. At least for small types, such as `unsigned` and iterators, I can't see any particular reason to use std::vector over `SmallVector` here.
-