AMDGPU: Remove redundant patterns for sub
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 3 May 2019 15:08:35 +0000 (15:08 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 3 May 2019 15:08:35 +0000 (15:08 +0000)
There were 2 patterns for sub, one selecting to sub and one to
subrev. Only one of these will succeed, so remove the reversed one.

llvm-svn: 359894

llvm/lib/Target/AMDGPU/VOP2Instructions.td

index db7a567..33b4cb7 100644 (file)
@@ -528,16 +528,12 @@ let AddedComplexity = 1 in {
 let SubtargetPredicate = HasAddNoCarryInsts in {
   def : DivergentBinOp<add, V_ADD_U32_e32>;
   def : DivergentBinOp<sub, V_SUB_U32_e32>;
-  def : DivergentBinOp<sub, V_SUBREV_U32_e32>;
 }
 
 let SubtargetPredicate = isGFX6GFX7GFX8GFX9, Predicates = [isGFX6GFX7GFX8GFX9] in {
 def : DivergentBinOp<add, V_ADD_I32_e32>;
-
 def : DivergentBinOp<sub, V_SUB_I32_e32>;
 
-def : DivergentBinOp<sub, V_SUBREV_I32_e32>;
-
 def : DivergentBinOp<srl, V_LSHRREV_B32_e32>;
 def : DivergentBinOp<sra, V_ASHRREV_I32_e32>;
 def : DivergentBinOp<shl, V_LSHLREV_B32_e32>;