diff options
author | Tom Stellard <[email protected]> | 2012-08-29 10:20:24 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-08-29 15:52:10 -0400 |
commit | 733c28a0d95c1da87b14ef893f8a59b1f940322a (patch) | |
tree | 7683419caef00aad4fbb94173079c4d50685d48f /src/gallium/drivers/radeon/SIInstructions.td | |
parent | cf4ac69928eb17685958e6b3b01b97544560d90e (diff) |
radeon/llvm: Set the neverHasSideEffects bit on more instructions
This flag makes these instructions candidates for the dead code
elimination and common subexpression elimination.
Diffstat (limited to 'src/gallium/drivers/radeon/SIInstructions.td')
-rw-r--r-- | src/gallium/drivers/radeon/SIInstructions.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/SIInstructions.td b/src/gallium/drivers/radeon/SIInstructions.td index 11bc8012fbd..8bc311b08a5 100644 --- a/src/gallium/drivers/radeon/SIInstructions.td +++ b/src/gallium/drivers/radeon/SIInstructions.td @@ -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", []>; |