forked from OSchip/llvm-project
[X86] Move the BITALG setOperationAction code into the hasBWI section to match what is done for VPOPCNTDQ in the AVX512F block. NFC
llvm-svn: 318870
This commit is contained in:
parent
e15cc16873
commit
8ad818656a
|
@ -1522,6 +1522,12 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
|
|||
for (auto ExtType : {ISD::ZEXTLOAD, ISD::SEXTLOAD}) {
|
||||
setLoadExtAction(ExtType, MVT::v32i16, MVT::v32i8, Legal);
|
||||
}
|
||||
|
||||
if (Subtarget.hasBITALG()) {
|
||||
for (auto VT : { MVT::v64i8, MVT::v32i16, MVT::v32i8,
|
||||
MVT::v16i16, MVT::v16i8, MVT::v8i16 })
|
||||
setOperationAction(ISD::CTPOP, VT, Legal);
|
||||
}
|
||||
}
|
||||
|
||||
if (!Subtarget.useSoftFloat() && Subtarget.hasVLX()) {
|
||||
|
@ -1556,11 +1562,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
|
|||
}
|
||||
}
|
||||
|
||||
if (Subtarget.hasBITALG())
|
||||
for (auto VT : { MVT::v64i8, MVT::v32i16, MVT::v32i8,
|
||||
MVT::v16i16, MVT::v16i8, MVT::v8i16 })
|
||||
setOperationAction(ISD::CTPOP, VT, Legal);
|
||||
|
||||
// We want to custom lower some of our intrinsics.
|
||||
setOperationAction(ISD::INTRINSIC_WO_CHAIN, MVT::Other, Custom);
|
||||
setOperationAction(ISD::INTRINSIC_W_CHAIN, MVT::Other, Custom);
|
||||
|
|
Loading…
Reference in New Issue