-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGCN] Use ZExt when handling indices in insertment element #85718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
DataCorrupted
merged 4 commits into
llvm:main
from
SecurityLab-UCD:amdgpu-codegen-prepare-use-zext
Mar 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
fe2d2aa
[AMDGCN] Use ZExt when handling indices in insertment element instruc…
DataCorrupted 282d796
[AMDGPU] move test to codegenprepare-break-large-phis.ll
DataCorrupted e3e34bf
change function naming
DataCorrupted 9aa773f
[AMDGPU] change test name and update groundtruth
DataCorrupted File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4 | ||
;RUN: llc -mtriple=amdgcn -mcpu=gfx1036 < %s | FileCheck %s | ||
define void @test(i1 %Bool, ptr %Ptr, <32 x float> %Vec1, <32 x float> %Vec2) { | ||
; CHECK-LABEL: test: | ||
; CHECK: ; %bb.0: ; %BB0 | ||
; CHECK-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) | ||
; CHECK-NEXT: s_mov_b32 vcc_lo, exec_lo | ||
; CHECK-NEXT: .LBB0_1: ; %BB1 | ||
; CHECK-NEXT: ; =>This Inner Loop Header: Depth=1 | ||
; CHECK-NEXT: s_cbranch_vccnz .LBB0_1 | ||
; CHECK-NEXT: ; %bb.2: ; %DummyReturnBlock | ||
; CHECK-NEXT: s_setpc_b64 s[30:31] | ||
BB0: | ||
%I = insertelement <32 x float> %Vec1, float 4.200000e+01, i1 true | ||
br label %BB1 | ||
|
||
BB1: ; preds = %BB0, %BB1, %BB2 | ||
%PHI = phi <32 x float> [ %I, %BB2 ], [ %Vec2, %BB1 ], [ zeroinitializer, %BB0 ] | ||
store <32 x float> %PHI, ptr %Ptr, align 128 | ||
br i1 %Bool, label %BB1, label %BB2 | ||
|
||
BB2: ; preds = %BB1 | ||
br label %BB1 | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name test pr85717? Can this merge in with the existing test for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to
test/CodeGen/AMDGPU/amdgpu-codegenprepare-break-large-phis.ll
and adapted to size-four-vector to avoid excessiveOPT-NEXT
. Please check if the test is desirable.