[llvm] r194738 - R600/SI: Specify S_ADDK/S_MULK set SCC and are commutable

Matt Arsenault Matthew.Arsenault at amd.com
Thu Nov 14 14:32:49 PST 2013


Author: arsenm
Date: Thu Nov 14 16:32:49 2013
New Revision: 194738

URL: http://llvm.org/viewvc/llvm-project?rev=194738&view=rev
Log:
R600/SI: Specify S_ADDK/S_MULK set SCC and are commutable

Modified:
    llvm/trunk/lib/Target/R600/SIInstructions.td

Modified: llvm/trunk/lib/Target/R600/SIInstructions.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstructions.td?rev=194738&r1=194737&r2=194738&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstructions.td (original)
+++ llvm/trunk/lib/Target/R600/SIInstructions.td Thu Nov 14 16:32:49 2013
@@ -128,8 +128,11 @@ def S_CMPK_LT_U32 : SOPK_32 <0x0000000d,
 def S_CMPK_LE_U32 : SOPK_32 <0x0000000e, "S_CMPK_LE_U32", []>;
 } // End isCompare = 1
 
-def S_ADDK_I32 : SOPK_32 <0x0000000f, "S_ADDK_I32", []>;
-def S_MULK_I32 : SOPK_32 <0x00000010, "S_MULK_I32", []>;
+let Defs = [SCC], isCommutable = 1 in {
+  def S_ADDK_I32 : SOPK_32 <0x0000000f, "S_ADDK_I32", []>;
+  def S_MULK_I32 : SOPK_32 <0x00000010, "S_MULK_I32", []>;
+}
+
 //def S_CBRANCH_I_FORK : SOPK_ <0x00000011, "S_CBRANCH_I_FORK", []>;
 def S_GETREG_B32 : SOPK_32 <0x00000012, "S_GETREG_B32", []>;
 def S_SETREG_B32 : SOPK_32 <0x00000013, "S_SETREG_B32", []>;





More information about the llvm-commits mailing list