mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Implemented cost model for masked load/store operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -582,6 +582,10 @@ unsigned BasicTTI::getIntrinsicInstrCost(Intrinsic::ID IID, Type *RetTy,
|
||||
case Intrinsic::lifetime_start:
|
||||
case Intrinsic::lifetime_end:
|
||||
return 0;
|
||||
case Intrinsic::masked_store:
|
||||
return TopTTI->getMaskedMemoryOpCost(Instruction::Store, Tys[0], 0, 0);
|
||||
case Intrinsic::masked_load:
|
||||
return TopTTI->getMaskedMemoryOpCost(Instruction::Load, RetTy, 0, 0);
|
||||
}
|
||||
|
||||
const TargetLoweringBase *TLI = getTLI();
|
||||
|
Reference in New Issue
Block a user