@@ -2574,19 +2574,6 @@ bool X86FastISel::TryEmitSmallMemcpy(X86AddressMode DestAM,
2574
2574
return true ;
2575
2575
}
2576
2576
2577
- // Add an annotation to an intrinsic instruction, specifying whether the
2578
- // intrinsic has been inlined or not.
2579
- //
2580
- // This is only necessary for intrinsics which may emit machine code.
2581
- void annotateIntrinsic (const IntrinsicInst *II, bool Inlined) {
2582
- IntrinsicInst *CI = const_cast <IntrinsicInst *>(II);
2583
- LLVMContext &C = CI->getContext ();
2584
- ConstantInt *CInt;
2585
- CInt = ConstantInt::get (C, APInt (1 , Inlined ? 1 : 0 ));
2586
- MDNode *N = MDNode::get (C, ConstantAsMetadata::get (CInt));
2587
- CI->setMetadata (" yk.intrinsic.inlined" , N);
2588
- }
2589
-
2590
2577
bool X86FastISel::fastLowerIntrinsicCall (const IntrinsicInst *II) {
2591
2578
// FIXME: Handle more intrinsics.
2592
2579
switch (II->getIntrinsicID ()) {
@@ -2724,7 +2711,6 @@ bool X86FastISel::fastLowerIntrinsicCall(const IntrinsicInst *II) {
2724
2711
// without a call if possible.
2725
2712
uint64_t Len = cast<ConstantInt>(MCI->getLength ())->getZExtValue ();
2726
2713
if (IsMemcpySmall (Len)) {
2727
- annotateIntrinsic (II, true );
2728
2714
X86AddressMode DestAM, SrcAM;
2729
2715
if (!X86SelectAddress (MCI->getRawDest (), DestAM) ||
2730
2716
!X86SelectAddress (MCI->getRawSource (), SrcAM))
@@ -2741,7 +2727,6 @@ bool X86FastISel::fastLowerIntrinsicCall(const IntrinsicInst *II) {
2741
2727
if (MCI->getSourceAddressSpace () > 255 || MCI->getDestAddressSpace () > 255 )
2742
2728
return false ;
2743
2729
2744
- annotateIntrinsic (II, false );
2745
2730
return lowerCallTo (II, " memcpy" , II->arg_size () - 1 );
2746
2731
}
2747
2732
case Intrinsic::memset : {
0 commit comments