Skip to content

Commit db6b576

Browse files
committed
remove ld_frag
1 parent 4b5432b commit db6b576

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/lib/Target/X86/X86InstrMisc.td

+10-10
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ let Predicates = [HasBMI2, NoTBM, HasEGPR] in {
13761376
}
13771377

13781378
multiclass bmi_pdep_pext<string mnemonic, X86TypeInfo t, SDPatternOperator OpNode,
1379-
PatFrag ld_frag, string suffix = ""> {
1379+
string suffix = ""> {
13801380
def rr#suffix : ITy<0xF5, MRMSrcReg, t, (outs t.RegClass:$dst),
13811381
(ins t.RegClass:$src1, t.RegClass:$src2),
13821382
mnemonic, binop_ndd_args,
@@ -1385,22 +1385,22 @@ multiclass bmi_pdep_pext<string mnemonic, X86TypeInfo t, SDPatternOperator OpNod
13851385
def rm#suffix : ITy<0xF5, MRMSrcMem, t, (outs t.RegClass:$dst),
13861386
(ins t.RegClass:$src1, t.MemOperand:$src2),
13871387
mnemonic, binop_ndd_args,
1388-
[(set t.RegClass:$dst, (OpNode t.RegClass:$src1, (ld_frag addr:$src2)))]>,
1388+
[(set t.RegClass:$dst, (OpNode t.RegClass:$src1, (t.LoadNode addr:$src2)))]>,
13891389
VVVV, Sched<[WriteALU.Folded, WriteALU.ReadAfterFold]>;
13901390
}
13911391

13921392
let Predicates = [HasBMI2, NoEGPR] in {
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;
1393+
defm PDEP32 : bmi_pdep_pext<"pdep", Xi32, X86pdep>, T8, XD, VEX;
1394+
defm PDEP64 : bmi_pdep_pext<"pdep", Xi64, X86pdep>, T8, XD, REX_W, VEX;
1395+
defm PEXT32 : bmi_pdep_pext<"pext", Xi32, X86pext>, T8, XS, VEX;
1396+
defm PEXT64 : bmi_pdep_pext<"pext", Xi64, X86pext>, T8, XS, REX_W, VEX;
13971397
}
13981398

13991399
let Predicates = [HasBMI2, HasEGPR] in {
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;
1400+
defm PDEP32 : bmi_pdep_pext<"pdep", Xi32, X86pdep, "_EVEX">, T8, XD, EVEX;
1401+
defm PDEP64 : bmi_pdep_pext<"pdep", Xi64, X86pdep, "_EVEX">, T8, XD, REX_W, EVEX;
1402+
defm PEXT32 : bmi_pdep_pext<"pext", Xi32, X86pext, "_EVEX">, T8, XS, EVEX;
1403+
defm PEXT64 : bmi_pdep_pext<"pext", Xi64, X86pext, "_EVEX">, T8, XS, REX_W, EVEX;
14041404
}
14051405

14061406
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)