From 3f24cdec2572741f018457d5f24ef479e1291f1c Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Mon, 24 Jan 2022 10:20:16 +0800 Subject: [PATCH] [RISCV][NFC] Remove tailing whitespaces in RISCVInstrInfoVSDPatterns.td and RISCVInstrInfoVVLPatterns.td --- .../Target/RISCV/RISCVInstrInfoVSDPatterns.td | 16 ++++++++-------- .../Target/RISCV/RISCVInstrInfoVVLPatterns.td | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td index 078025051e71..e452a84a9a6f 100644 --- a/llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td +++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td @@ -368,22 +368,22 @@ multiclass VPatWidenBinarySDNode_VV_VX_WV_WX(instruction_name#"_VV_"#vti.Vti.LMul.MX) - vti.Vti.RegClass:$rs2, vti.Vti.RegClass:$rs1, + vti.Vti.RegClass:$rs2, vti.Vti.RegClass:$rs1, vti.Vti.AVL, vti.Vti.Log2SEW)>; def : Pat<(op (vti.Wti.Vector (extop (vti.Vti.Vector vti.Vti.RegClass:$rs2))), (vti.Wti.Vector (extop (vti.Vti.Vector (SplatPat GPR:$rs1))))), (!cast(instruction_name#"_VX_"#vti.Vti.LMul.MX) - vti.Vti.RegClass:$rs2, GPR:$rs1, + vti.Vti.RegClass:$rs2, GPR:$rs1, vti.Vti.AVL, vti.Vti.Log2SEW)>; def : Pat<(op (vti.Wti.Vector vti.Wti.RegClass:$rs2), (vti.Wti.Vector (extop (vti.Vti.Vector vti.Vti.RegClass:$rs1)))), (!cast(instruction_name#"_WV_"#vti.Vti.LMul.MX) - vti.Wti.RegClass:$rs2, vti.Vti.RegClass:$rs1, + vti.Wti.RegClass:$rs2, vti.Vti.RegClass:$rs1, vti.Vti.AVL, vti.Vti.Log2SEW)>; def : Pat<(op (vti.Wti.Vector vti.Wti.RegClass:$rs2), (vti.Wti.Vector (extop (vti.Vti.Vector (SplatPat GPR:$rs1))))), (!cast(instruction_name#"_WX_"#vti.Vti.LMul.MX) - vti.Wti.RegClass:$rs2, GPR:$rs1, + vti.Wti.RegClass:$rs2, GPR:$rs1, vti.Vti.AVL, vti.Vti.Log2SEW)>; } } @@ -418,12 +418,12 @@ multiclass VPatWidenBinaryFPSDNode_VV_VF { def : Pat<(op (vti.Wti.Vector (fpext_oneuse (vti.Vti.Vector vti.Vti.RegClass:$rs2))), (vti.Wti.Vector (fpext_oneuse (vti.Vti.Vector vti.Vti.RegClass:$rs1)))), (!cast(instruction_name#"_VV_"#vti.Vti.LMul.MX) - vti.Vti.RegClass:$rs2, vti.Vti.RegClass:$rs1, + vti.Vti.RegClass:$rs2, vti.Vti.RegClass:$rs1, vti.Vti.AVL, vti.Vti.Log2SEW)>; def : Pat<(op (vti.Wti.Vector (fpext_oneuse (vti.Vti.Vector vti.Vti.RegClass:$rs2))), (vti.Wti.Vector (fpext_oneuse (vti.Vti.Vector (SplatPat vti.Vti.ScalarRegClass:$rs1))))), (!cast(instruction_name#"_V"#vti.Vti.ScalarSuffix#"_"#vti.Vti.LMul.MX) - vti.Vti.RegClass:$rs2, vti.Vti.ScalarRegClass:$rs1, + vti.Vti.RegClass:$rs2, vti.Vti.ScalarRegClass:$rs1, vti.Vti.AVL, vti.Vti.Log2SEW)>; } } @@ -433,12 +433,12 @@ multiclass VPatWidenBinaryFPSDNode_WV_WF { def : Pat<(op (vti.Wti.Vector vti.Wti.RegClass:$rs2), (vti.Wti.Vector (fpext_oneuse (vti.Vti.Vector vti.Vti.RegClass:$rs1)))), (!cast(instruction_name#"_WV_"#vti.Vti.LMul.MX) - vti.Wti.RegClass:$rs2, vti.Vti.RegClass:$rs1, + vti.Wti.RegClass:$rs2, vti.Vti.RegClass:$rs1, vti.Vti.AVL, vti.Vti.Log2SEW)>; def : Pat<(op (vti.Wti.Vector vti.Wti.RegClass:$rs2), (vti.Wti.Vector (fpext_oneuse (vti.Vti.Vector (SplatPat vti.Vti.ScalarRegClass:$rs1))))), (!cast(instruction_name#"_W"#vti.Vti.ScalarSuffix#"_"#vti.Vti.LMul.MX) - vti.Wti.RegClass:$rs2, vti.Vti.ScalarRegClass:$rs1, + vti.Wti.RegClass:$rs2, vti.Vti.ScalarRegClass:$rs1, vti.Vti.AVL, vti.Vti.Log2SEW)>; } } diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td index 28cb8fc41379..0ac959d79a02 100644 --- a/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td +++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td @@ -616,7 +616,7 @@ multiclass VPatReductionVL { multiclass VPatBinarySDNodeExt_V_WV { foreach vti = AllWidenableIntVectors in { def : Pat< - (vti.Vti.Vector + (vti.Vti.Vector (riscv_trunc_vector_vl (op (vti.Wti.Vector vti.Wti.RegClass:$rs2), (vti.Wti.Vector (extop (vti.Vti.Vector vti.Vti.RegClass:$rs1)))), @@ -631,7 +631,7 @@ multiclass VPatBinarySDNodeExt_V_WV { foreach vti = AllWidenableIntVectors in { def : Pat< - (vti.Vti.Vector + (vti.Vti.Vector (riscv_trunc_vector_vl (op (vti.Wti.Vector vti.Wti.RegClass:$rs2), (vti.Wti.Vector (extop (vti.Vti.Vector (SplatPat GPR:$rs1))))),