Skip to content

Commit 4b5432b

Browse files
committed
remove redundant argu
1 parent 199c97b commit 4b5432b

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

llvm/lib/Target/X86/X86InstrMisc.td

+10-19
Original file line numberDiff line numberDiff line change
@@ -1375,41 +1375,32 @@ let Predicates = [HasBMI2, NoTBM, HasEGPR] in {
13751375
(MOV8ri (CountTrailingOnes imm:$mask)), sub_8bit))>;
13761376
}
13771377

1378-
multiclass bmi_pdep_pext<string mnemonic, X86TypeInfo t,
1379-
X86MemOperand x86memop, SDPatternOperator OpNode,
1378+
multiclass bmi_pdep_pext<string mnemonic, X86TypeInfo t, SDPatternOperator OpNode,
13801379
PatFrag ld_frag, string suffix = ""> {
13811380
def rr#suffix : ITy<0xF5, MRMSrcReg, t, (outs t.RegClass:$dst),
13821381
(ins t.RegClass:$src1, t.RegClass:$src2),
13831382
mnemonic, binop_ndd_args,
13841383
[(set t.RegClass:$dst, (OpNode t.RegClass:$src1, t.RegClass:$src2))]>,
13851384
VVVV, Sched<[WriteALU]>;
13861385
def rm#suffix : ITy<0xF5, MRMSrcMem, t, (outs t.RegClass:$dst),
1387-
(ins t.RegClass:$src1, x86memop:$src2),
1386+
(ins t.RegClass:$src1, t.MemOperand:$src2),
13881387
mnemonic, binop_ndd_args,
13891388
[(set t.RegClass:$dst, (OpNode t.RegClass:$src1, (ld_frag addr:$src2)))]>,
13901389
VVVV, Sched<[WriteALU.Folded, WriteALU.ReadAfterFold]>;
13911390
}
13921391

13931392
let Predicates = [HasBMI2, NoEGPR] in {
1394-
defm PDEP32 : bmi_pdep_pext<"pdep", Xi32, i32mem,
1395-
X86pdep, loadi32>, T8, XD, VEX;
1396-
defm PDEP64 : bmi_pdep_pext<"pdep", Xi64, i64mem,
1397-
X86pdep, loadi64>, T8, XD, REX_W, VEX;
1398-
defm PEXT32 : bmi_pdep_pext<"pext", Xi32, i32mem,
1399-
X86pext, loadi32>, T8, XS, VEX;
1400-
defm PEXT64 : bmi_pdep_pext<"pext", Xi64, i64mem,
1401-
X86pext, loadi64>, T8, XS, REX_W, VEX;
1393+
defm PDEP32 : bmi_pdep_pext<"pdep", Xi32, X86pdep, loadi32>, T8, XD, VEX;
1394+
defm PDEP64 : bmi_pdep_pext<"pdep", Xi64, X86pdep, loadi64>, T8, XD, REX_W, VEX;
1395+
defm PEXT32 : bmi_pdep_pext<"pext", Xi32, X86pext, loadi32>, T8, XS, VEX;
1396+
defm PEXT64 : bmi_pdep_pext<"pext", Xi64, X86pext, loadi64>, T8, XS, REX_W, VEX;
14021397
}
14031398

14041399
let Predicates = [HasBMI2, HasEGPR] in {
1405-
defm PDEP32 : bmi_pdep_pext<"pdep", Xi32, i32mem,
1406-
X86pdep, loadi32, "_EVEX">, T8, XD, EVEX;
1407-
defm PDEP64 : bmi_pdep_pext<"pdep", Xi64, i64mem,
1408-
X86pdep, loadi64, "_EVEX">, T8, XD, REX_W, EVEX;
1409-
defm PEXT32 : bmi_pdep_pext<"pext", Xi32, i32mem,
1410-
X86pext, loadi32, "_EVEX">, T8, XS, EVEX;
1411-
defm PEXT64 : bmi_pdep_pext<"pext", Xi64, i64mem,
1412-
X86pext, loadi64, "_EVEX">, T8, XS, REX_W, EVEX;
1400+
defm PDEP32 : bmi_pdep_pext<"pdep", Xi32, X86pdep, loadi32, "_EVEX">, T8, XD, EVEX;
1401+
defm PDEP64 : bmi_pdep_pext<"pdep", Xi64, X86pdep, loadi64, "_EVEX">, T8, XD, REX_W, EVEX;
1402+
defm PEXT32 : bmi_pdep_pext<"pext", Xi32, X86pext, loadi32, "_EVEX">, T8, XS, EVEX;
1403+
defm PEXT64 : bmi_pdep_pext<"pext", Xi64, X86pext, loadi64, "_EVEX">, T8, XS, REX_W, EVEX;
14131404
}
14141405

14151406
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)