In function TargetTransformInfo::getInstructionCost, all enum values in the switch statement has been covered, so the default is unnecessary, and may cause error with option -Werror,-Wcovered-switch-default, so remove it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312834
91177308-0d34-0410-b5e6-
96231b3b80d8
case TCK_CodeSize:
return getUserCost(I);
-
- default:
- llvm_unreachable("Unknown instruction cost kind");
- return 0;
}
+
+ return 0;
}
/// \brief Underlying constants for 'cost' values in this interface.