mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
AMDGPU/GlobalISel: Select SMRD loads for more types
llvm-svn: 371954
This commit is contained in:
parent
e595ef14d8
commit
3adf10e3f7
@ -793,9 +793,18 @@ multiclass SMLoad_Pattern <string Instr, ValueType vt> {
|
||||
// selector to prefer those.
|
||||
let AddedComplexity = 100 in {
|
||||
|
||||
defm : SMRD_Pattern <"S_LOAD_DWORD", i32>;
|
||||
defm : SMRD_Pattern <"S_LOAD_DWORDX2", v2i32>;
|
||||
defm : SMRD_Pattern <"S_LOAD_DWORDX4", v4i32>;
|
||||
foreach vt = Reg32Types.types in {
|
||||
defm : SMRD_Pattern <"S_LOAD_DWORD", vt>;
|
||||
}
|
||||
|
||||
foreach vt = SReg_64.RegTypes in {
|
||||
defm : SMRD_Pattern <"S_LOAD_DWORDX2", vt>;
|
||||
}
|
||||
|
||||
foreach vt = SReg_128.RegTypes in {
|
||||
defm : SMRD_Pattern <"S_LOAD_DWORDX4", vt>;
|
||||
}
|
||||
|
||||
defm : SMRD_Pattern <"S_LOAD_DWORDX8", v8i32>;
|
||||
defm : SMRD_Pattern <"S_LOAD_DWORDX16", v16i32>;
|
||||
|
||||
|
1007
test/CodeGen/AMDGPU/GlobalISel/inst-select-load-constant.mir
Normal file
1007
test/CodeGen/AMDGPU/GlobalISel/inst-select-load-constant.mir
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user