llvm.org GIT mirror llvm / 4bcb856
Get right cost for addrspacecast in cost model git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199833 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 6 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
438438 case Instruction::UIToFP:
439439 case Instruction::Trunc:
440440 case Instruction::FPTrunc:
441 case Instruction::BitCast: {
441 case Instruction::BitCast:
442 case Instruction::AddrSpaceCast: {
442443 Type *SrcTy = I->getOperand(0)->getType();
443444 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy);
444445 }