- Jan 18, 2023
-
-
Roman Lebedev authored
As per the test case from Steven Johnson in https://reviews.llvm.org/rGf8d9097168b7#1165311 we can indeed encounter such shuffles, that produce all-undef after folding, before something else manages to optimize them away.
-
OCHyams authored
-
David Truby authored
This patch adds a move_alloc implementation to the flang runtime. Most of the checks required by the standard for move_alloc are done by semenatic analysis; these checks are not replicated here. Differential Revision: https://reviews.llvm.org/D141286
-
Sanjay Patel authored
This transform was added with 68c197f0, and the post-commit review noted the potential for miscompiles at narrow bitwidths. I'm not sure how to expose the i1 nuw bug because we already simplify that, but other cases show that there are missing transforms to add in follow-up patches.
-
Valentin Clement authored
-
Sanjay Patel authored
-
Sanjay Patel authored
A bug was introduced with 68c197f0 as noted in the post-commit review comments, and there are potentially missed smaller transforms/simplifications because no-wrap multiply with only 1 or 2 bits eliminates some potential results.
-
Denis Antrushin authored
Since D140504, GCStrategy is available for use in opt. Now we can move statepoint correctness checks from StatepointLowering.cpp to Verifier. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D141948
-
Florian Hahn authored
This updates the VPAllSuccessorsIterator to not connect the VPRegionBlock itself to its successors. The successors are connected to the exit block of the region. At the moment, this doesn't change any exisint functionality. But the new schema ensures the following property when used for VPDominatorTree: 1. Entry & exit blocks of regions dominate the successors of the region. This allows for convenient checking of dominance between defs and uses that are not defined in the same region. I will share a follow-up patch to use it for the VPDominatorTree soon. Depends on D140500. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D140511
-
Matthias Springer authored
Multiple vector results require multiple masks and passthru values. Depends On: D141683 Differential Revision: https://reviews.llvm.org/D141786
-
Nikita Popov authored
When stepping back, and there is a following fixed character, also try to check whether another following fixed character matches. For our tests the next fixed character is often " ", which occurs pretty frequently, so checking a second character is worthwhile in practice. This drops FileCheck runtime for the vloxseg.c test from 25s to 17s for me.
-
Florian Hahn authored
This reverts commit fb13dcf3. A large compile-time regression for code generated by sanitizers has been reported. Revert while I investigate the issue. Details and reproducers are available here: https://reviews.llvm.org/D135915
-
Florian Hahn authored
-
Matthias Springer authored
`DstBufferizableOpInterfaceExternalModel` provides suitable default implementations for Linalg ops. Differential Revision: https://reviews.llvm.org/D141921
-
Mehdi Amini authored
The pass would assert on some input IR that it didn't expect. Instead signal a pass failure and properly interupt the flow. Fixes #60022
-
Matthias Springer authored
This driver should iterate until convergence or until the specified op was erased. However, it used to stop when any op was erased. Differential Revision: https://reviews.llvm.org/D141921
-
Elena Lepilkina authored
Differential Revision: https://reviews.llvm.org/D142003
-
Aaron Ballman authored
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm made very clear that it is an UB having type definitions with in offsetof. Clang supports defining a type as the first argument as a conforming extension due to how many projects use the construct in C99 and earlier to calculate the alignment of a type. GCC also supports defining a type as the first argument. This adds extension warnings and documentation for the functionality Clang explicitly supports. Fixes #57065 Reverts the revert of 39da55e8 Co-authored-by:
Yingchi Long <i@lyc.dev> Co-authored-by:
Aaron Ballman <aaron@aaronballman.com> Differential Revision: https://reviews.llvm.org/D133574
-
Peixin Qiao authored
This scenario is not supported yet. Reviewed By: clementval, jeanPerier, sscalpone Differential Revision: https://reviews.llvm.org/D141932
-
Samuel Parker authored
Add more variations to fpclamptosat.
-
Sanjay Patel authored
Ideally, these negative tests would have been added before 68c197f0 to make sure the specific operand matching is working as expected, but I did not remember to include them.
-
Sanjay Patel authored
We can match and capture in one statement. Also, make the code more closely resemble the description comment by using the constant name of an operand value.
-
Viktoriia Bakalova authored
Differential Revision: https://reviews.llvm.org/D141944
-
LLVM GN Syncbot authored
-
wanglei authored
This implementation supports basic relocation types and adds EHFrame, Got/Plt handling passes. This patch also enables JIT support for LoongArch64. With this patch, I successfully run hello.ll and simple_throw.ll (which is generated from test-suite/SingleSource/Regression/C++/EH/simple_throw.cpp) using the `lli` command with options `--jit-kind=orc --jit-linker=jitlink`. Note: `hasJIT` property of LoongArch32 remains false as there is no validation environment. New changes: Since LoongArch does not support RuntimeDyld, JITLink is set by default. Add a null-terminator to eh-frame sections. This should fix the test failure on LoongArch bot. (https://lab.llvm.org/staging/#/builders/236/builds/896) Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D141036
-
Benjamin Kramer authored
-
Sebastian Neubauer authored
When opaque pointers are enabled and old IR with typed pointers is read, the BitcodeReader automatically upgrades all typed pointers to opaque pointers. This is a lossy conversion, i.e. when a function argument is a pointer and unused, it’s impossible to reconstruct the original type behind the pointer. There are cases where the type information of pointers is needed. One is reading DXIL, which is bitcode of old LLVM IR and makes a lot of use of pointers in function signatures. We’d like to keep using up-to-date llvm to read in and process DXIL, so in the face of opaque pointers, we need some way to access the type information of pointers from the read bitcode. This patch allows extracting type information by supplying functions to parseBitcodeFile that get called for each function signature or metadata value. The function can access the type information via the reader’s type IDs and the getTypeByID and getContainedTypeID functions. The tests exemplarily shows how type info from pointers can be stored in metadata for use after the BitcodeReader finished. Differential Revision: https://reviews.llvm.org/D127728
-
Florian Hahn authored
-
Dmitry Bushev authored
Fix bug that leads to some pseudo instructions not being lowered. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D141395
-
Haojian Wu authored
-
Simon Pilgrim authored
combineInsertEltToShuffle was performing 2 very different folds in the same call, merging "(insert_vector_elt (vector_shuffle X, Y), (extract_vector_elt X, N), IdxC) --> (vector_shuffle X, Y)" and "(insert_vector_elt V, (bitcast X from vector type), IdxC) --> bitcast(shuffle (bitcast V), (extended X), Mask)" The folds are currently still attempted in the same order as before (just as 2 seperate calls) so there should be no change in behaviour. First step towards some adjustments to mergeInsertEltWithShuffle for D127115.
-
David Green authored
This adds both signed and unsigned transforms for max(a, b) - min(a, b) -> abd(a, b). unsigned: https://alive2.llvm.org/ce/z/RF4jGQ signed: https://alive2.llvm.org/ce/z/Cjr2zE Fixes: #59894 Differential Revision: https://reviews.llvm.org/D141706
-
Haojian Wu authored
The commit was reverted in 346e1c43 as part of the f1f0a0d8 revert.
-
Tim Northover authored
On Darwin, function arguments occupy their real size when passed on the stack (e.g. an i16 only consumes 2 bytes). This means that, even for fixed args in varargs calls we need to keep track of the original type being passed before any DAG/GISel promotions. Existing logic only applied this fix to the non-varargs case leading to mismatch between caller & callee in those situations. On Linux & Windows these arguments always occupy a 64-bit slot anyway so there's no special handling needed.
-
chenglin.bi authored
Origianl patch made a mistake that ugt is reverse cc should be ule. And ule < C will be generalize to ult < C + 1. So the new patch add support for ult < Pow2 case. https://alive2.llvm.org/ce/z/naBw5A Reviewed By: samtebbs, chapuni Differential Revision: https://reviews.llvm.org/D141829
-
Haojian Wu authored
-
Luke Lau authored
Like in the scalar domain, combine calls to (fp_to_int (ftrunc X)) on scalable and fixed-length vectors into a single vfcvt instruction. For truncating rounds, the static vfcvt.rtz rounding mode is used. Otherwise use the VFCVT_RM_ variants to set the rounding mode dynamically. Closes https://github.com/llvm/llvm-project/issues/56737 Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D141599
-
Luke Lau authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D141600
-
Nikita Popov authored
Now that we no longer perform any kind of typed pointer guessing, we no longer need this API.
-
David Green authored
This implements the fold (abs (sub nsw x, y)) -> abds(x, y). Providing the sub is nsw this appears to be valid without the extensions that are usually used for abds. https://alive2.llvm.org/ce/z/XHVaB3. The equivalent abdu combine seems to not be valid. Differential Revision: https://reviews.llvm.org/D141665
-