diff --git a/lib/Target/R600/SIInstrFormats.td b/lib/Target/R600/SIInstrFormats.td index bc8c0110471..10e0a3f0c13 100644 --- a/lib/Target/R600/SIInstrFormats.td +++ b/lib/Target/R600/SIInstrFormats.td @@ -223,6 +223,7 @@ class SMRD pattern> : let SMRD = 1; let mayStore = 0; let mayLoad = 1; + let hasSideEffects = 0; let UseNamedOperandTable = 1; } @@ -527,10 +528,9 @@ class VOPC op, dag ins, string asm, list pattern> : class VINTRP op, dag outs, dag ins, string asm, list pattern> : InstSI , VINTRPe { - - let neverHasSideEffects = 1; let mayLoad = 1; let mayStore = 0; + let hasSideEffects = 0; } } // End Uses = [EXEC] @@ -555,7 +555,7 @@ class MUBUF op, dag outs, dag ins, string asm, list pattern> : let EXP_CNT = 1; let MUBUF = 1; - let neverHasSideEffects = 1; + let hasSideEffects = 0; let UseNamedOperandTable = 1; } @@ -591,6 +591,8 @@ class MIMG op, dag outs, dag ins, string asm, list pattern> : let VM_CNT = 1; let EXP_CNT = 1; let MIMG = 1; + + let hasSideEffects = 0; // XXX ???? } diff --git a/lib/Target/R600/SIInstrInfo.td b/lib/Target/R600/SIInstrInfo.td index 2c9ffaffca8..713e84edefd 100644 --- a/lib/Target/R600/SIInstrInfo.td +++ b/lib/Target/R600/SIInstrInfo.td @@ -941,6 +941,8 @@ class DS_1A op, dag outs, dag ins, string asm, list pat> : // Single load interpret the 2 i8imm operands as a single i16 offset. let offset0 = offset{7-0}; let offset1 = offset{15-8}; + + let hasSideEffects = 0; } class DS_Load_Helper op, string asm, RegisterClass regClass> : DS_1A < @@ -965,6 +967,7 @@ class DS_Load2_Helper op, string asm, RegisterClass regClass> : DS < let data1 = 0; let mayLoad = 1; let mayStore = 0; + let hasSideEffects = 0; } class DS_Store_Helper op, string asm, RegisterClass regClass> : DS_1A < @@ -988,6 +991,7 @@ class DS_Store2_Helper op, string asm, RegisterClass regClass> : DS < []> { let mayStore = 1; let mayLoad = 0; + let hasSideEffects = 0; let vdst = 0; } @@ -1016,7 +1020,6 @@ class DS_1A2D_RET op, string asm, RegisterClass rc, string noRetOp = "" AtomicNoRet { let mayStore = 1; let mayLoad = 1; - let hasPostISelHook = 1; // Adjusted to no return version. }