diff --git a/lib/Target/Hexagon/HexagonInstrInfo.td b/lib/Target/Hexagon/HexagonInstrInfo.td index ab05ec51b3f..40d30dea043 100644 --- a/lib/Target/Hexagon/HexagonInstrInfo.td +++ b/lib/Target/Hexagon/HexagonInstrInfo.td @@ -68,18 +68,6 @@ def : T_CMP_pat ; def : T_CMP_pat ; def : T_CMP_pat ; -// Multi-class for logical operators. -multiclass ALU32_rr_ri { - def rr : ALU32_rr<(outs IntRegs:$dst), (ins IntRegs:$b, IntRegs:$c), - !strconcat("$dst = ", !strconcat(OpcStr, "($b, $c)")), - [(set (i32 IntRegs:$dst), (OpNode (i32 IntRegs:$b), - (i32 IntRegs:$c)))]>; - def ri : ALU32_ri<(outs IntRegs:$dst), (ins s10Imm:$b, IntRegs:$c), - !strconcat("$dst = ", !strconcat(OpcStr, "(#$b, $c)")), - [(set (i32 IntRegs:$dst), (OpNode s10Imm:$b, - (i32 IntRegs:$c)))]>; -} - //===----------------------------------------------------------------------===// // ALU32/ALU + //===----------------------------------------------------------------------===// @@ -449,16 +437,6 @@ def A2_nop: ALU32Inst <(outs), (ins), "nop" > { def : Pat<(not (i32 IntRegs:$src1)), (SUB_ri -1, (i32 IntRegs:$src1))>; -multiclass ALU32_Pbase { - let isPredicatedNew = isPredNew in - def NAME : ALU32_rr<(outs RC:$dst), - (ins PredRegs:$src1, IntRegs:$src2, IntRegs: $src3), - !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew,".new) $dst = ", - ") $dst = ")#mnemonic#"($src2, $src3)", - []>; -} - let hasSideEffects = 0, hasNewValue = 1 in class T_tfr16 : ALU32Inst <(outs IntRegs:$Rx), (ins IntRegs:$src1, u16Imm:$u16), @@ -481,14 +459,6 @@ def A2_tfril: T_tfr16<0>; def A2_tfrih: T_tfr16<1>; } -multiclass ALU32_Pred { - let isPredicatedFalse = PredNot in { - defm _c#NAME : ALU32_Pbase; - // Predicate new - defm _cdn#NAME : ALU32_Pbase; - } -} - // Conditional transfer is an alias to conditional "Rd = add(Rs, #0)". let isPredicated = 1, hasNewValue = 1, opNewValue = 0 in class T_tfr_pred