Index: llvm/lib/Analysis/TargetTransformInfo.cpp =================================================================== --- llvm/lib/Analysis/TargetTransformInfo.cpp +++ llvm/lib/Analysis/TargetTransformInfo.cpp @@ -1176,13 +1176,10 @@ switch (I->getOpcode()) { case Instruction::GetElementPtr: - return getUserCost(I, CostKind); - case Instruction::Ret: case Instruction::PHI: - case Instruction::Br: { - return getCFInstrCost(I->getOpcode(), CostKind); - } + case Instruction::Br: + return getUserCost(I, CostKind); case Instruction::Add: case Instruction::FAdd: case Instruction::Sub: