- May 17, 2022
-
-
Nikita Popov authored
-
Alex Bradbury authored
Extends the cleanup in D125713 to IsWasm64. Differential Revision: https://reviews.llvm.org/D125714
-
Alex Bradbury authored
This is (IMHO) cleaner and (objectively) more strongly typed than using strings. A follow-on patch will do the same for IsWasm64. Differential Revision: https://reviews.llvm.org/D125713
-
Simon Pilgrim authored
We already use combineAddOrSubToADCOrSBB to fold extended EFLAGS results into ISD::ADD/SUB ops as X86ISD::ADC/SBB carry ops. This patch extends this to also try to fold EFLAGS results with X86ISD::ADD/SUB ops Differential Revision: https://reviews.llvm.org/D125642
-
Sven van Haastregt authored
The vload*_half* and vstore*_half* builtins do not require the cl_khr_fp16 extension: pointers to `half` can be declared without the extension and the _half variants of vload and vstore should be available without the extension. This aligns the guards for these builtins for `-fdeclare-opencl-builtins` with `opencl-c.h`. Fixes https://github.com/llvm/llvm-project/issues/55275 Differential Revision: https://reviews.llvm.org/D125401
-
Nikita Popov authored
JumpThreading intentionally does not force updating of the DT during optimization, because this may be expensive when many CFG updates and DT calculations are interleaved. We shouldn't be fetching the DT just for the purpose of calling isGuaranteedNotToBeUndefOrPoison(), especially as DT availability doesn't even show benefit in tests.
-
Alexey Lapshin authored
this review is extracted from D86539. 1. Rename AccelTableKind to DwarfLinkerAccelTableKind (to differentiate from AccelTableKind from CodeGen/AsmPrinter/DwarfDebug.h) 2. Add None value to the DwarfLinkerAccelTableKind. 3. added 'None' value for 'accelerator' option of dsymutil. Differential Revision: https://reviews.llvm.org/D125474
-
Dmitry Vassiliev authored
[SROA] Avoid postponing rewriting load/store by ignoring lifetime intrinsics in partition's promotability checking This patch fixes a bug that generates unnecessary packing/unpacking structure code because of incorrectly handling lifetime intrinsic. For example, a partition of an alloca may contain many slices: ``` Partition [0, 4): Slice0: [0, 4) used by: load i32 addr; Slice1: [0, 4) used by: store i32 v, addr; Slice2: [0, 16) used by lifetime.start(16, addr); ``` When SROA determines if the partition can be promoted, lifetime.start is currently treated as a whole alloca load/store, so Slice0 and Slice1 cannot be promoted at this attempt, but the packing/unpacking code for Slice0 and Slice1 has been generated. After rewrite lifetime.start/end intrinsic, SROA tries again with Slice0 and Slice1 and finally promotes them, but redundant packing/unpacking code remaining in the IRs. This patch changes promotability checking to ignore lifetime intrinsic (they will be rewritten to correct sizes later), so we can promote the real users (load/store) at the first attempt with optimal code. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D124967
-
Dmitry Vassiliev authored
-
Fraser Cormack authored
-
Alex Zinenko authored
The support for this has been added by 946311b8 but then ignored by bc22b5c9. This enables one to write generic code that can be instantiated for both specific operation classes and the common base class without specialization. Examples include functions that take/return ops, such as: ```mlir template <typename FnTy> void applyIf(FnTy &&lambda, ...) { for (Operation *op : ...) { auto specific = dyn_cast<function_traits<FnTy>::template arg_t<0>>(op); if (specific) lambda(specific); } } ``` that would otherwise need to rely on template specialization to support lambdas that take specific operations and those that take `Operation *`. Differential Revision: https://reviews.llvm.org/D125543 Reviewed by: rriddle
-
jacquesguan authored
This patch uses VP_REDUCE_AND and VP_REDUCE_OR to replace VP_REDUCE_SMAX,VP_REDUCE_SMIN,VP_REDUCE_UMAX and VP_REDUCE_UMIN for mask vector type. Differential Revision: https://reviews.llvm.org/D125002
-
Fraser Cormack authored
-
Chenbing Zheng authored
-
Samuel Thibault authored
This seems to be a copy-paste from the similar zlib detection code. Patch By: sthibaul Differential Revision: https://reviews.llvm.org/D117052
-
esmeyi authored
This is the second patch to enable the XCOFF64 object writer. Reviewed By: jhenderson, shchenz Differential Revision: https://reviews.llvm.org/D122287
-
Nikita Popov authored
We do have a non-trivial implementation for binaryXor() now.
-
Nikita Popov authored
-
Nikita Popov authored
This allows us to compute known high bits. It's not optimal, but better than nothing.
-
Fraser Cormack authored
This patch adds a simple test which demonstrates a miscompilation of 16-byte-aligned scalar (non-RVV) objects when combined with RVV stack objects. The RISCV stack is assumed to be aligned to 16 bytes, and this is guaranteed/assumed to be true when setting up the stack. However, when the stack contains RVV objects, we decrement the stack pointer by some multiple of vlenb, which is only guaranteed to be aligned to 8 bytes. This means that non-RVV objects specifically requiring 16-byte alignment fall through the cracks and are misaligned. Objects requiring larger alignment trigger stack realignment and thus should be okay. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D125382
-
Fraser Cormack authored
The documentation for this specifically mentions that this should not happen. We could think about adding target hooks to permit it (and how to merge IDs) in the future if that is desirable. This specific test case was merging a scalable-vector slot into a non-scalable one and dropping the notion of scalability, meaning we failed to allocate enough stack space for the object. Reviewed By: arsenm, MaskRay, sdesmalen Differential Revision: https://reviews.llvm.org/D125699
-
Nikita Popov authored
Checking whether two KnownBits are the same is somewhat common, mainly in test code. I don't think there is a lot of room for confusion with "determine what the KnownBits for an icmp eq would be", as that has a different result type (this is what the eq() method implements, which returns Optional<bool>). Differential Revision: https://reviews.llvm.org/D125692
-
Peixin-Qiao authored
As Fortran 2018 15.8.1(3), in a reference to an elemental procedure, if any argument is an array, each actual argument that corresponds to an INTENT (OUT) or INTENT (INOUT) dummy argument shall be an array. Add this semantic check. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D125685
-
Peixin-Qiao authored
This supports the lowering parse-tree to MLIR for ordered clause in worksharing-loop directive. Also add the test case for operation conversion. Part of this patch is from the fir-dev branch of https://github.com/flang-compiler/f18-llvm-project . Co-authored-by:
Sourabh Singh Tomar <SourabhSingh.Tomar@amd.com> Reviewed By: kiranchandramohan, NimishMishra Differential Revision: https://reviews.llvm.org/D125456
-
luxufan authored
Reviewed By: kito-cheng Differential Revision: https://reviews.llvm.org/D123978
-
jacquesguan authored
Add support for translating llvm::InsertElement and llvm::ExtractElement. Differential Revision: https://reviews.llvm.org/D125674
-
Chuanqi Xu authored
function in promise_type According to https://cplusplus.github.io/CWG/issues/2585.html, this fixes https://github.com/llvm/llvm-project/issues/54881 Simply, the clang tried to found (do lookup and overload resolution. Is there any better word to use than found?) allocation function in promise_type and global scope. However, this is not consistent with the standard. The standard behavior would be that the compiler shouldn't lookup in global scope in case we lookup the allocation function name in promise_type. In other words, the program is ill-formed if there is incompatible allocation function in promise type. Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D125517
-
Mitch Phillips authored
This reverts commit 4680982b. Broke a fuchsia windows bot. More details in the review: https://reviews.llvm.org/D123534
-
Vy Nguyen authored
Need -DAG in the first expect statement too
-
wren romano authored
This is a followup to D125431, to keep from confusing the machinery that generates diffs (since combining these two changes into one would obfuscate the changes actually made in the previous differential). Depends On D125431 Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D125432
-
Thomas Lively authored
to reflect the latest state of the proposal: https://github.com/WebAssembly/relaxed-simd/blob/main/proposals/relaxed-simd/Overview.md#binary-format. Moves code around to match the instruction order from the proposal, but the only functional changes are to the names and opcodes. Reviewed By: aheejin Differential Revision: https://reviews.llvm.org/D125726
-
https://reviews.llvm.org/D125732Vy Nguyen authored
Details: The test was incorrectly expecting the error messages for the export symbols to have a particular order. It shouldn't because the export symbol list is processed concurrently.
-
Vy Nguyen authored
The metadata seems to be demangled differently
-
Philip Reames authored
Our current implementation of the InsertVSETVLI dataflow allows phase 3 to arrive at a different block end state than the data flow in phase 1/2 computed. This arises because a block which contains instructions (e.g. load or stores) which don't consume all the incoming bits of the VL/VTYPE can be compatible with multiple incoming states. The algorithm effectively changes the SEW on such instructions, and propagates the prior state forward. As phase 3 uses the block input state for this propagation, but phase 1/2 doesn't, this can result in different block end states. If we don't correct for it, this discrepancy can result in miscompiles. This was the source of multiple recent bugs. However, by now we have fixes for all known correctness issues. The basic strategy we use is to insert a compensation vsetvli to bring the block state leaving the block back into consistency with the one computed. This is correct, but results in extra vsetvlis being placed at the end of blocks. This change adjusts the phase 1/2 algorithm to propagate the incoming block state through the block, allowing the compatibility rules to modify the end state. The algorithm may need to run slightly more iterations, but the end result is consistent with what phase 3 does. The benefit of doing this is two fold. First, we reverse some of the code quality introductions introduced in the functional fixes. Second, we simplify the invariants, and allow the strict assertions to be enabled. Several humans, myself included, have found it quite surprising that invariant didn't hold already, and arguably that confusion is the cause of several of our recent miscompiles in this code. The downside to this patch is that the dataflow may require additional iterations to stabilize. In the worse case, we go from O(Edges) to O(E + UniquePaths) as the incoming state (and thus the outgoing one) can now change once for each path from the entry block. Differential Revision: https://reviews.llvm.org/D125232
-
Philip Reames authored
We've got a lurking problem with our data flow implementation where different phases disagree, resulting in possible miscompiles. D119518 introduced a workaround, but failed to consider blocks which only contain load/stores compatible with their incoming state. When I went to rebase and simplify D125232, it turned out that not all of the correctness issues had been fixed yet after all. This is the correctness fix accidentally embedded in the original more complicated version. Note that the test changes here are mostly regressions. It's worth noting that the simplified version of D125232 exactly reverses all the non-functional diffs in the test caused here. D125232 should be the immediate following commit. Differential Revision: https://reviews.llvm.org/D125703
-
Grace Jennings authored
This patch sorts unit test targets into directories corresponding to the test source file directories to improve target navigation. Reviewed By: smeenai Differential Revision: https://reviews.llvm.org/D124810
-
Mitch Phillips authored
An upcoming patch will extend llvm-symbolizer to provide the source line information for global variables. The goal is to move AddressSanitizer off of internal debug info for symbolization onto the DWARF standard (and doing a clean-up in the process). Currently, ASan reports the line information for constant strings if a memory safety bug happens around them. We want to keep this behaviour, so we need to emit debuginfo for these variables as well. Reviewed By: dblaikie, rnk, aprantl Differential Revision: https://reviews.llvm.org/D123534
-
Vy Nguyen authored
PR/55512 Reviewed By: keith Differential Revision: https://reviews.llvm.org/D125732
-
River Riddle authored
-
River Riddle authored
This commit enables proper highlighting when inner statements are outside of a constraint/pattern/etc. This shouldn't really happen in actual code, but can happen in documentation (which uses the same syntax grammar).
-