-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[AMDGPU][True16][CodeGen] stop emitting spgr_lo16 from isel #144819
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1534,17 +1534,34 @@ def : GCNPat< | |
>; | ||
|
||
def : GCNPat< | ||
(i64 (anyext i16:$src)), | ||
(i64 (UniformUnaryFrag<anyext> i16:$src)), | ||
(REG_SEQUENCE VReg_64, | ||
(i32 (COPY $src)), sub0, | ||
(V_MOV_B32_e32 (i32 0)), sub1) | ||
|
||
>; | ||
|
||
def : GCNPat< | ||
(i64 (DivergentUnaryFrag<anyext> i16:$src)), | ||
(REG_SEQUENCE VReg_64, $src, lo16, (i16 (IMPLICIT_DEF)), hi16, (i32 (IMPLICIT_DEF)), sub1) | ||
>; | ||
|
||
def : GCNPat< | ||
(i16 (trunc i32:$src)), | ||
(i16 (UniformUnaryFrag<trunc> i32:$src)), | ||
(COPY $src) | ||
>; | ||
|
||
def : GCNPat< | ||
(i16 (DivergentUnaryFrag<trunc> i32:$src)), | ||
(EXTRACT_SUBREG $src, lo16) | ||
>; | ||
|
||
def : GCNPat < | ||
(i16 (trunc i64:$src)), | ||
(i16 (UniformUnaryFrag<trunc> i64:$src)), | ||
(EXTRACT_SUBREG $src, sub0) | ||
>; | ||
|
||
def : GCNPat < | ||
(i16 (DivergentUnaryFrag<trunc> i64:$src)), | ||
(EXTRACT_SUBREG $src, lo16) | ||
>; | ||
|
||
|
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.