[llvm] bdae564 - [ARM][AArch64] !cast<Instruction>("XYZ") -> XYZ. NFC
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 07:02:45 PDT 2023
Author: David Green
Date: 2023-06-28T15:02:38+01:00
New Revision: bdae564d1c6f8ce6f0b5dc0ed16aff41416725a0
URL: https://github.com/llvm/llvm-project/commit/bdae564d1c6f8ce6f0b5dc0ed16aff41416725a0
DIFF: https://github.com/llvm/llvm-project/commit/bdae564d1c6f8ce6f0b5dc0ed16aff41416725a0.diff
LOG: [ARM][AArch64] !cast<Instruction>("XYZ") -> XYZ. NFC
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/ARM/ARMInstrNEON.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.td b/llvm/lib/Target/AArch64/AArch64InstrInfo.td
index 973b90a5ded87..ec5f840e857e2 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.td
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.td
@@ -4314,24 +4314,24 @@ defm : FPToIntegerPats<fp_to_uint, fp_to_uint_sat, fround, "FCVTAU">;
let Predicates = [HasFullFP16] in {
def : Pat<(i32 (any_lround f16:$Rn)),
- (!cast<Instruction>(FCVTASUWHr) f16:$Rn)>;
+ (FCVTASUWHr f16:$Rn)>;
def : Pat<(i64 (any_lround f16:$Rn)),
- (!cast<Instruction>(FCVTASUXHr) f16:$Rn)>;
+ (FCVTASUXHr f16:$Rn)>;
def : Pat<(i64 (any_llround f16:$Rn)),
- (!cast<Instruction>(FCVTASUXHr) f16:$Rn)>;
+ (FCVTASUXHr f16:$Rn)>;
}
def : Pat<(i32 (any_lround f32:$Rn)),
- (!cast<Instruction>(FCVTASUWSr) f32:$Rn)>;
+ (FCVTASUWSr f32:$Rn)>;
def : Pat<(i32 (any_lround f64:$Rn)),
- (!cast<Instruction>(FCVTASUWDr) f64:$Rn)>;
+ (FCVTASUWDr f64:$Rn)>;
def : Pat<(i64 (any_lround f32:$Rn)),
- (!cast<Instruction>(FCVTASUXSr) f32:$Rn)>;
+ (FCVTASUXSr f32:$Rn)>;
def : Pat<(i64 (any_lround f64:$Rn)),
- (!cast<Instruction>(FCVTASUXDr) f64:$Rn)>;
+ (FCVTASUXDr f64:$Rn)>;
def : Pat<(i64 (any_llround f32:$Rn)),
- (!cast<Instruction>(FCVTASUXSr) f32:$Rn)>;
+ (FCVTASUXSr f32:$Rn)>;
def : Pat<(i64 (any_llround f64:$Rn)),
- (!cast<Instruction>(FCVTASUXDr) f64:$Rn)>;
+ (FCVTASUXDr f64:$Rn)>;
//===----------------------------------------------------------------------===//
// Scaled integer to floating point conversion instructions.
@@ -4406,24 +4406,24 @@ let Predicates = [HasFRInt3264] in {
// in the FCVTZS as the output of FRINTX is an integer).
let Predicates = [HasFullFP16] in {
def : Pat<(i32 (any_lrint f16:$Rn)),
- (FCVTZSUWHr (!cast<Instruction>(FRINTXHr) f16:$Rn))>;
+ (FCVTZSUWHr (FRINTXHr f16:$Rn))>;
def : Pat<(i64 (any_lrint f16:$Rn)),
- (FCVTZSUXHr (!cast<Instruction>(FRINTXHr) f16:$Rn))>;
+ (FCVTZSUXHr (FRINTXHr f16:$Rn))>;
def : Pat<(i64 (any_llrint f16:$Rn)),
- (FCVTZSUXHr (!cast<Instruction>(FRINTXHr) f16:$Rn))>;
+ (FCVTZSUXHr (FRINTXHr f16:$Rn))>;
}
def : Pat<(i32 (any_lrint f32:$Rn)),
- (FCVTZSUWSr (!cast<Instruction>(FRINTXSr) f32:$Rn))>;
+ (FCVTZSUWSr (FRINTXSr f32:$Rn))>;
def : Pat<(i32 (any_lrint f64:$Rn)),
- (FCVTZSUWDr (!cast<Instruction>(FRINTXDr) f64:$Rn))>;
+ (FCVTZSUWDr (FRINTXDr f64:$Rn))>;
def : Pat<(i64 (any_lrint f32:$Rn)),
- (FCVTZSUXSr (!cast<Instruction>(FRINTXSr) f32:$Rn))>;
+ (FCVTZSUXSr (FRINTXSr f32:$Rn))>;
def : Pat<(i64 (any_lrint f64:$Rn)),
- (FCVTZSUXDr (!cast<Instruction>(FRINTXDr) f64:$Rn))>;
+ (FCVTZSUXDr (FRINTXDr f64:$Rn))>;
def : Pat<(i64 (any_llrint f32:$Rn)),
- (FCVTZSUXSr (!cast<Instruction>(FRINTXSr) f32:$Rn))>;
+ (FCVTZSUXSr (FRINTXSr f32:$Rn))>;
def : Pat<(i64 (any_llrint f64:$Rn)),
- (FCVTZSUXDr (!cast<Instruction>(FRINTXDr) f64:$Rn))>;
+ (FCVTZSUXDr (FRINTXDr f64:$Rn))>;
//===----------------------------------------------------------------------===//
// Floating point two operand instructions.
diff --git a/llvm/lib/Target/ARM/ARMInstrNEON.td b/llvm/lib/Target/ARM/ARMInstrNEON.td
index 4c8fe4493f9aa..32c6843026dd5 100644
--- a/llvm/lib/Target/ARM/ARMInstrNEON.td
+++ b/llvm/lib/Target/ARM/ARMInstrNEON.td
@@ -7992,28 +7992,25 @@ multiclass Lengthen_HalfDouble_Big_Endian<string DestLanes, string DestTy, strin
(!cast<PatFrag>("extloadv" # SrcTy) addrmode6:$addr)),
(EXTRACT_SUBREG (!cast<Instruction>("VMOVLuv" # Insn2Lanes # Insn2Ty)
(EXTRACT_SUBREG (!cast<Instruction>("VMOVLuv" # Insn1Lanes # Insn1Ty)
- (!cast<Instruction>("VREV16d8")
- (VLD1LNd16 addrmode6:$addr, (f64 (IMPLICIT_DEF)), (i32 0)))),
+ (VREV16d8 (VLD1LNd16 addrmode6:$addr, (f64 (IMPLICIT_DEF)), (i32 0)))),
dsub_0)),
- dsub_0)>,
+ dsub_0)>,
Requires<[HasNEON]>;
def _Z : Pat<(!cast<ValueType>("v" # DestLanes # DestTy)
(!cast<PatFrag>("zextloadv" # SrcTy) addrmode6:$addr)),
(EXTRACT_SUBREG (!cast<Instruction>("VMOVLuv" # Insn2Lanes # Insn2Ty)
(EXTRACT_SUBREG (!cast<Instruction>("VMOVLuv" # Insn1Lanes # Insn1Ty)
- (!cast<Instruction>("VREV16d8")
- (VLD1LNd16 addrmode6:$addr, (f64 (IMPLICIT_DEF)), (i32 0)))),
+ (VREV16d8 (VLD1LNd16 addrmode6:$addr, (f64 (IMPLICIT_DEF)), (i32 0)))),
dsub_0)),
- dsub_0)>,
+ dsub_0)>,
Requires<[HasNEON]>;
def _S : Pat<(!cast<ValueType>("v" # DestLanes # DestTy)
(!cast<PatFrag>("sextloadv" # SrcTy) addrmode6:$addr)),
(EXTRACT_SUBREG (!cast<Instruction>("VMOVLsv" # Insn2Lanes # Insn2Ty)
(EXTRACT_SUBREG (!cast<Instruction>("VMOVLsv" # Insn1Lanes # Insn1Ty)
- (!cast<Instruction>("VREV16d8")
- (VLD1LNd16 addrmode6:$addr, (f64 (IMPLICIT_DEF)), (i32 0)))),
+ (VREV16d8 (VLD1LNd16 addrmode6:$addr, (f64 (IMPLICIT_DEF)), (i32 0)))),
dsub_0)),
- dsub_0)>,
+ dsub_0)>,
Requires<[HasNEON]>;
}
@@ -8066,17 +8063,17 @@ let Predicates = [HasNEON,IsLE] in {
let Predicates = [HasNEON,IsBE] in {
def : Pat<(v2i64 (extloadvi8 addrmode6:$addr)),
(VMOVLuv2i64 (EXTRACT_SUBREG (VMOVLuv4i32 (EXTRACT_SUBREG (VMOVLuv8i16
- (!cast<Instruction>("VREV16d8")
+ (VREV16d8
(VLD1LNd16 addrmode6:$addr,
(f64 (IMPLICIT_DEF)), (i32 0)))), dsub_0)), dsub_0))>;
def : Pat<(v2i64 (zextloadvi8 addrmode6:$addr)),
(VMOVLuv2i64 (EXTRACT_SUBREG (VMOVLuv4i32 (EXTRACT_SUBREG (VMOVLuv8i16
- (!cast<Instruction>("VREV16d8")
+ (VREV16d8
(VLD1LNd16 addrmode6:$addr,
(f64 (IMPLICIT_DEF)), (i32 0)))), dsub_0)), dsub_0))>;
def : Pat<(v2i64 (sextloadvi8 addrmode6:$addr)),
(VMOVLsv2i64 (EXTRACT_SUBREG (VMOVLsv4i32 (EXTRACT_SUBREG (VMOVLsv8i16
- (!cast<Instruction>("VREV16d8")
+ (VREV16d8
(VLD1LNd16 addrmode6:$addr,
(f64 (IMPLICIT_DEF)), (i32 0)))), dsub_0)), dsub_0))>;
}
More information about the llvm-commits
mailing list