mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
radeon/llvm: Set the neverHasSideEffects bit on more instructions
This flag makes these instructions candidates for the dead code elimination and common subexpression elimination.
This commit is contained in:
parent
cf4ac69928
commit
733c28a0d9
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ def isSI : Predicate<"Subtarget.device()"
|
|||
|
||||
let Predicates = [isSI] in {
|
||||
|
||||
let neverHasSideEffects = 1 in {
|
||||
def S_MOV_B32 : SOP1_32 <0x00000003, "S_MOV_B32", []>;
|
||||
def S_MOV_B64 : SOP1_64 <0x00000004, "S_MOV_B64", []>;
|
||||
def S_CMOV_B32 : SOP1_32 <0x00000005, "S_CMOV_B32", []>;
|
||||
|
|
@ -22,6 +23,7 @@ def S_WQM_B32 : SOP1_32 <0x00000009, "S_WQM_B32", []>;
|
|||
def S_WQM_B64 : SOP1_64 <0x0000000a, "S_WQM_B64", []>;
|
||||
def S_BREV_B32 : SOP1_32 <0x0000000b, "S_BREV_B32", []>;
|
||||
def S_BREV_B64 : SOP1_64 <0x0000000c, "S_BREV_B64", []>;
|
||||
} // End neverHasSideEffects = 1
|
||||
////def S_BCNT0_I32_B32 : SOP1_BCNT0 <0x0000000d, "S_BCNT0_I32_B32", []>;
|
||||
////def S_BCNT0_I32_B64 : SOP1_BCNT0 <0x0000000e, "S_BCNT0_I32_B64", []>;
|
||||
////def S_BCNT1_I32_B32 : SOP1_BCNT1 <0x0000000f, "S_BCNT1_I32_B32", []>;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue