Skip to content

Commit 32bd1f5

Browse files
committed
Revert "[SVE] Add patterns for shift intrinsics with FalseLanesZero mode"
This reverts commit 22c3ba4. Breaks buildbot https://lab.llvm.org/buildbot/#/builders/197/builds/4272 Differential Revision: https://reviews.llvm.org/D145551
1 parent 696f8b3 commit 32bd1f5

File tree

3 files changed

+0
-200
lines changed

3 files changed

+0
-200
lines changed

llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,10 +2060,6 @@ let Predicates = [HasSVEorSME, UseExperimentalZeroingPseudos] in {
20602060
defm LSR_ZPZZ : sve_int_bin_pred_zeroing_bhsd<int_aarch64_sve_lsr>;
20612061
defm LSL_ZPZZ : sve_int_bin_pred_zeroing_bhsd<int_aarch64_sve_lsl>;
20622062
defm ASRD_ZPZI : sve_int_bin_pred_shift_imm_right_zeroing_bhsd<AArch64asrd_m1>;
2063-
2064-
defm ASR_ZPZI : sve_int_bin_pred_imm_zeroing_bhsd<int_aarch64_sve_asr, SVEShiftImmR8, SVEShiftImmR16, SVEShiftImmR32, SVEShiftImmR64>;
2065-
defm LSR_ZPZI : sve_int_bin_pred_imm_zeroing_bhsd<int_aarch64_sve_lsr, SVEShiftImmR8, SVEShiftImmR16, SVEShiftImmR32, SVEShiftImmR64>;
2066-
defm LSL_ZPZI : sve_int_bin_pred_imm_zeroing_bhsd<int_aarch64_sve_lsl, SVEShiftImmL8, SVEShiftImmL16, SVEShiftImmL32, SVEShiftImmL64>;
20672063
} // End HasSVEorSME, UseExperimentalZeroingPseudos
20682064

20692065
let Predicates = [HasSVEorSME] in {

llvm/lib/Target/AArch64/SVEInstrFormats.td

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -571,12 +571,6 @@ class SVE_Shift_DupImm_Any_Predicate_Pat<ValueType vt, SDPatternOperator op,
571571
: Pat<(vt (op (pt (SVEAnyPredicate)), vt:$Rn, (vt (splat_vector (it (cast i32:$imm)))))),
572572
(inst $Rn, i32:$imm)>;
573573

574-
class SVE_2_Op_Imm_Pat_Zero<ValueType vt, SDPatternOperator op, ValueType pt,
575-
ValueType it, ComplexPattern cpx, Instruction inst>
576-
: Pat<(vt (op pt:$Pg, (vselect pt:$Pg, vt:$Op1, (SVEDup0)),
577-
(vt (splat_vector (it (cpx i32:$imm)))))),
578-
(inst $Pg, $Op1, i32:$imm)>;
579-
580574
class SVE_2_Op_Fp_Imm_Pat<ValueType vt, SDPatternOperator op,
581575
ValueType pt, ValueType it,
582576
FPImmLeaf immL, int imm,
@@ -5900,20 +5894,6 @@ multiclass sve_int_bin_pred_zeroing_bhsd<SDPatternOperator op> {
59005894
def : SVE_3_Op_Pat_SelZero<nxv2i64, op, nxv2i1, nxv2i64, nxv2i64, !cast<Pseudo>(NAME # _ZERO_D)>;
59015895
}
59025896

5903-
multiclass sve_int_bin_pred_imm_zeroing_bhsd<SDPatternOperator op,
5904-
ComplexPattern imm_b, ComplexPattern imm_h,
5905-
ComplexPattern imm_s, ComplexPattern imm_d> {
5906-
def _ZERO_B : PredTwoOpImmPseudo<NAME # _B, ZPR8, Operand<i32>, FalseLanesZero>;
5907-
def _ZERO_H : PredTwoOpImmPseudo<NAME # _H, ZPR16, Operand<i32>, FalseLanesZero>;
5908-
def _ZERO_S : PredTwoOpImmPseudo<NAME # _S, ZPR32, Operand<i32>, FalseLanesZero>;
5909-
def _ZERO_D : PredTwoOpImmPseudo<NAME # _D, ZPR64, Operand<i32>, FalseLanesZero>;
5910-
5911-
def : SVE_2_Op_Imm_Pat_Zero<nxv16i8, op, nxv16i1, i32, imm_b, !cast<Pseudo>(NAME # _ZERO_B)>;
5912-
def : SVE_2_Op_Imm_Pat_Zero<nxv8i16, op, nxv8i1, i32, imm_h, !cast<Pseudo>(NAME # _ZERO_H)>;
5913-
def : SVE_2_Op_Imm_Pat_Zero<nxv4i32, op, nxv4i1, i32, imm_s, !cast<Pseudo>(NAME # _ZERO_S)>;
5914-
def : SVE_2_Op_Imm_Pat_Zero<nxv2i64, op, nxv2i1, i64, imm_d, !cast<Pseudo>(NAME # _ZERO_D)>;
5915-
}
5916-
59175897
multiclass sve_int_bin_pred_shift_wide<bits<3> opc, string asm,
59185898
SDPatternOperator op> {
59195899
def _B : sve_int_bin_pred_shift<0b00, 0b1, opc, asm, ZPR8, ZPR64>;

llvm/test/CodeGen/AArch64/sve-intrinsics-int-arith-imm-zero.ll

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)