Skip to content

Commit b177554

Browse files
author
git apple-llvm automerger
committed
Merge commit '16aef9ec5231' from llvm.org/main into next
2 parents ed0e2b3 + 16aef9e commit b177554

File tree

2 files changed

+6
-359
lines changed

2 files changed

+6
-359
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6297,16 +6297,15 @@ foreach vti = AllIntegerVectors in {
62976297
(XLenVT timm:$policy))>;
62986298

62996299
// Match VSUB with a small immediate to vadd.vi by negating the immediate.
6300-
def : Pat<(vti.Vector (int_riscv_vsub (vti.Vector vti.RegClass:$merge),
6300+
def : Pat<(vti.Vector (int_riscv_vsub (vti.Vector (undef)),
63016301
(vti.Vector vti.RegClass:$rs1),
63026302
(vti.Scalar simm5_plus1:$rs2),
63036303
VLOpFrag)),
6304-
(!cast<Instruction>("PseudoVADD_VI_"#vti.LMul.MX)
6305-
vti.RegClass:$merge,
6306-
vti.RegClass:$rs1,
6307-
(NegImm simm5_plus1:$rs2),
6308-
GPR:$vl,
6309-
vti.Log2SEW, TA_MA)>;
6304+
(!cast<Instruction>("PseudoVADD_VI_"#vti.LMul.MX) (vti.Vector (IMPLICIT_DEF)),
6305+
vti.RegClass:$rs1,
6306+
(NegImm simm5_plus1:$rs2),
6307+
GPR:$vl,
6308+
vti.Log2SEW, TA_MA)>;
63106309
def : Pat<(vti.Vector (int_riscv_vsub_mask (vti.Vector vti.RegClass:$merge),
63116310
(vti.Vector vti.RegClass:$rs1),
63126311
(vti.Scalar simm5_plus1:$rs2),

0 commit comments

Comments
 (0)