mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
AMDGPU: Use implicit_def for selecting anyext
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53397d1544
commit
8cbfb0914d
@ -3362,11 +3362,16 @@ def : Pat <
|
||||
(S_BFE_I64 i64:$src, 0x200000) // 0 | 32 << 16
|
||||
>;
|
||||
|
||||
class ZExt_i64_i32_Pat <SDNode ext> : Pat <
|
||||
(i64 (ext i32:$src)),
|
||||
def : Pat <
|
||||
(i64 (zext i32:$src)),
|
||||
(REG_SEQUENCE SReg_64, $src, sub0, (S_MOV_B32 0), sub1)
|
||||
>;
|
||||
|
||||
def : Pat <
|
||||
(i64 (anyext i32:$src)),
|
||||
(REG_SEQUENCE SReg_64, $src, sub0, (i32 (IMPLICIT_DEF)), sub1)
|
||||
>;
|
||||
|
||||
class ZExt_i64_i1_Pat <SDNode ext> : Pat <
|
||||
(i64 (ext i1:$src)),
|
||||
(REG_SEQUENCE VReg_64,
|
||||
@ -3375,8 +3380,6 @@ class ZExt_i64_i1_Pat <SDNode ext> : Pat <
|
||||
>;
|
||||
|
||||
|
||||
def : ZExt_i64_i32_Pat<zext>;
|
||||
def : ZExt_i64_i32_Pat<anyext>;
|
||||
def : ZExt_i64_i1_Pat<zext>;
|
||||
def : ZExt_i64_i1_Pat<anyext>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user