- Sep 12, 2023
-
-
Andrzej Warzyński authored
Make sure that when analysing a `vector.transfer_read` that's a candidate for either hoisting or store-to-load forwarding, `memref.collapse_shape` Ops are correctly included in the alias analysis. This is done by either * making sure that relevant users are taken into account, or * source Ops are correctly identified.
-
Ivan Kosarev authored
It still fails with expensive checks enabled. This partially reverts: a1e38e0b [AMDGPU][GFX11] Add more test coverage for FMA instructions.
-
Kinuko Yasuda authored
We can dump the same information from RecordStorageLocation. Tested the behavior before and after patch, that generates the field values in the HTML in both cases (and also made sure that removing the relevant code makes the field values in the HTML go away)
-
Mehdi Amini authored
This makes it more consistent with properties.
-
David Green authored
The non-constant bit/bif/bsp already work through tablegen patterns, this patch handles the constant case, mirroring the basic support for `or(and(X, C), and(Y, ~C))` from ISel tryCombineToBSL. BSP gets expanded to either BIT, BIF or BSL depending on the best register allocation. G_BIT can be replaced with G_BSP as a more general alternative.
-
David Green authored
This adds some more extensive test coverage for fpow intrinsics through global isel, and removes the unused vector libcall types. All types get scalarized, fp16 will be expanded to fp32 and then we lower to a libcall from there.
-
Valery Pykhtin authored
A register's use with isUndef flags shouldn't be considered as a point where the register is live. LiveVariables::runOnInstr ignores such uses. This was found when I tried to replace calls to SIOptimizeVGPRLiveRange::updateLiveRangeInThenRegion SIOptimizeVGPRLiveRange::updateLiveRangeInElseRegion with LiveVariables::recomputeForSingleDefVirtReg. In the testcase below %2 use is undef in the last REG_SEQUENCE. CodeGen/AMDGPU/si-opt-vgpr-liverange-bug-deadlanes.mir failed: Function Live Ins: $vgpr0 in %0 bb.0: successors: %bb.1(0x40000000), %bb.2(0x40000000); %bb.1(50.00%), %bb.2(50.00%) liveins: $vgpr0 %0:vgpr_32 = COPY killed $vgpr0 %1:vgpr_32 = V_MOV_B32_e32 0, implicit $exec %2:vgpr_32 = BUFFER_LOAD_DWORD_OFFEN killed %0:vgpr_32, undef %5:sgpr_128, 0, 0, 0, 0, implicit $exec :: (dereferenceable invariant load (s32)) %3:sreg_64 = V_CMP_NE_U32_e64 0, %2:vgpr_32, implicit $exec %7:sreg_64 = SI_IF killed %3:sreg_64, %bb.2, implicit-def dead $exec, implicit-def dead $scc, implicit $exec S_BRANCH %bb.1 bb.1: ; predecessors: %bb.0 successors: %bb.2(0x80000000); %bb.2(100.00%) %8:vreg_128 = REG_SEQUENCE killed %1:vgpr_32, %subreg.sub0, %1:vgpr_32, %subreg.sub1, %1:vgpr_32, %subreg.sub2, undef %4.sub3:vreg_128, %subreg.sub3 bb.2: ; predecessors: %bb.0, %bb.1 successors: %bb.3(0x40000000), %bb.4(0x40000000); %bb.3(50.00%), %bb.4(50.00%) %9:vreg_128 = PHI undef %10:vreg_128, %bb.0, %8:vreg_128, %bb.1 %14:vgpr_32 = PHI %2:vgpr_32, %bb.0, undef %15:vgpr_32, %bb.1 %11:sreg_64 = SI_ELSE killed %7:sreg_64, %bb.4, implicit-def dead $exec, implicit-def dead $scc, implicit $exec S_BRANCH %bb.3 bb.3: ; predecessors: %bb.2 successors: %bb.4(0x80000000); %bb.4(100.00%) %12:vreg_128 = REG_SEQUENCE killed %14:vgpr_32, %subreg.sub0, %14:vgpr_32, %subreg.sub1, %14:vgpr_32, %subreg.sub2, undef %6:vgpr_32, %subreg.sub3 bb.4: ; predecessors: %bb.2, %bb.3 %13:vreg_128 = PHI %9:vreg_128, %bb.2, %12:vreg_128, %bb.3 SI_END_CF killed %11:sreg_64, implicit-def dead $exec, implicit-def dead $scc, implicit $exec dead %4:vreg_128 = REG_SEQUENCE killed %13.sub2:vreg_128, %subreg.sub0, %13.sub2:vreg_128, %subreg.sub1, %13.sub2:vreg_128, %subreg.sub2, **undef %2:vgpr_32**, %subreg.sub3 S_ENDPGM 0 *** Bad machine code: LiveVariables: Block should not be in AliveBlocks *** - function: _amdgpu_ps_main - basic block: %bb.1 (0x55e17ebd7100) Virtual register %2 is not needed live through the block. *** Bad machine code: LiveVariables: Block should not be in AliveBlocks *** - function: _amdgpu_ps_main - basic block: %bb.2 (0x55e17ebd7200) Virtual register %2 is not needed live through the block. *** Bad machine code: LiveVariables: Block should not be in AliveBlocks *** - function: _amdgpu_ps_main - basic block: %bb.3 (0x55e17ebd7300) Virtual register %2 is not needed live through the block. Differential Revision: https://reviews.llvm.org/D158167
-
Ivan Kosarev authored
This is another attempt to update the tests to run for GFX11. Previously done in <https://reviews.llvm.org/D153269>, and then reverted in <https://reviews.llvm.org/rG2d3e6c440244ad94777aa13566b0376eb3c088f1> due to a failure on a buildbot with expensive checks enabled. Commit 4b1702e8 fixed the problem.
-
Guillaume Chatelet authored
Add the is_object type traits. Implementation comes from https://en.cppreference.com/w/cpp/types/is_object
-
Mehdi Amini authored
-
Saiyedul Islam authored
Also update LIT tests and docs. For more details, see https://llvm.org/docs/AMDGPUUsage.html#code-object-v5-metadata Reviewed By: arsenm, jhuber6 Github PR: #65410 Differential Revision: https://reviews.llvm.org/D129818
-
Yusuke MINATO authored
Adds a new HLFIR operation for the MAXVAL intrinsic according to the design set out in flang/docs/HighLevelFIR.md.
-
David Spickett authored
By running this from lldb/ $ black --exclude "third_party/|scripts/|utils/" ./
-
David Spickett authored
This reverts commit 8012518f. The x86 register write test had one that expected "\$rax" so on. As these patterns were previously regex, the $ had to be escaped. Now they are just plain strings to this is not needed.
-
jeanPerier authored
Outside of BIND(C), assumed length character scalar and explicit shape are passed by address + an extra length argument (fir.boxchar in FIR). The standard mandates that they be passed via CFI descriptor in BIND(C) interface (fir.box in FIR). This patch fix the handling for this case.
-
martinboehme authored
We want to eliminate the `RecordStorageLocation` from `RecordValue` and, ultimately, eliminate `RecordValue` entirely (see the discussion linked in the `RecordValue` class comment). This is one step in that direction. To eliminate `RecordValue::getChild()`, we also eliminate the last remaining caller, namely the `getFieldValue(const RecordValue *, ...)` overload. Calls to this overload have been rewritten to use the `getFieldValue(const RecordStorageLocation *, ...)` overload. Note that this also makes the code slightly simpler in many cases.
-
pvanhout authored
-
martinboehme authored
Now that prvalue expressions map directly to values (see https://reviews.llvm.org/D158977), it's no longer guaranteed that `RecordValue`s associated with the same expression will always have the same storage location. In other words, D158977 invalidated the assertion in `mergeDistinctValues()`. The newly added test causes this assertion to fail without the other changes in the patch. This patch fixes the issue. However, the real fix will be to eliminate the `StorageLocation` from `RecordValue` entirely.
-
Markus Böck authored
The current implicit conversion operator from an interface to a "base interface" of the interface unconditionally calls `this->getImpl()` which leads to accessing a null pointer if the interface instance is a null instance. This PR changes the ODS generated interface instance to explicitly check and then return a null interface instance if the `this` instance is a null instance.
-
Matt Arsenault authored
Live out implicit_defs need to be kept, but the check for this only checked if the block parent was the same. This doesn't work if the parent blocks are the same but the value is live. Fixes verifier error "Instruction ending live segment doesn't read the register", which would appear at the coalesced non-implicit_def def. Fixes #38788 https://reviews.llvm.org/D158882
-
Matt Arsenault authored
This fixes some verifier errors when live out implicit defs are coalesced with identity copies. Fixes some reduced testcases from issue #38788 but doesn't solve the original failure. I was surprised this seems to obviate the special casing in analyzeValue that's been there since the subregister liveness support went in. https://reviews.llvm.org/D158850
-
Mehdi Amini authored
Include the issue description in the subscription comment so that email notification is self-contained (#65839) This makes it so that we don't need to open the issue to have the description in our inbox on subscription.
-
Vitaly Buka authored
The test passes without stdc++, but we prefer to run it with stdc++ if availibe.
-
Mehdi Amini authored
-
Daniil Dudkin authored
This patch is part of a larger initiative aimed at fixing floating-point `max` and `min` operations in MLIR: https://discourse.llvm.org/t/rfc-fix-floating-point-max-and-min-operations-in-mlir/72671. This commit addresses Task 1.2 of the mentioned RFC. By renaming these operations, we align their names with LLVM intrinsics that have corresponding semantics.
-
Fangrui Song authored
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Ye Luo authored
-
Zhangyin authored
Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D156225
-
Zhangyin authored
[libcxx] <experimental/simd> Added internal storage type, constructors, subscript operators of class simd/simd_mask and related tests [libcxx] <experimental/simd> Added internal storage type for class simd/simd_mask [libcxx] <experimental/simd> Added all constructors of class simd/simd_mask and related tests [libcxx] <experimental/simd> Added basic simd reference implementation, subscript operators of class simd/simd_mask and related tests Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D144364
-
Zhangyin authored
[libcxx] <experimental/simd> Added aliagned flag types, traits is_simd_flag_type[_v], memory_alignment[_v] and related tests Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D153319
-
Zhangyin authored
Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D144363
-
Zhangyin authored
[libcxx] <experimental/simd> Add ABI tags, class template simd/simd_mask implementations. Add related simd traits and tests. [libcxx] <experimental/simd> Add ABI tags, class template simd/simd_mask implementations. [libcxx] <experimental/simd> Add traits is_abi_tag[_v], is_simd[_v] and is_simd_mask[_v]. [libcxx] <experimental/simd> Add related tests. Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D144362
-
Zhangyin authored
Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D144698
-
Ye Luo authored
-
Wang Pengcheng authored
We will get an assertion of 'Unknown memory constraint' when we dump `MachineOperand` with constraint A.
-
Takuya Shimizu authored
The wrong handling of %x specifier with alternative form causes a false positive in linux kernel (https://github.com/ClangBuiltLinux/linux/issues/1923#issuecomment-1696075886) The kernel code: https://github.com/torvalds/linux/blob/651a00bc56403161351090a9d7ddbd7095975324/drivers/media/pci/cx18/cx18-mailbox.c#L99 This patch fixes this handling, and also adds some standard wordings as comments to clarify the reason. Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D159138
-