Patch by Aditya Kumar.
Differential Revision: https://reviews.llvm.org/D22967
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277634
91177308-0d34-0410-b5e6-
96231b3b80d8
/// \brief Add information about a block to the current state.
void analyzeBasicBlock(const BasicBlock *BB, const TargetTransformInfo &TTI,
- SmallPtrSetImpl<const Value*> &EphValues);
+ const SmallPtrSetImpl<const Value*> &EphValues);
/// \brief Collect a loop's ephemeral values (those used only by an assume
/// or similar intrinsics in the loop).
/// block.
void CodeMetrics::analyzeBasicBlock(const BasicBlock *BB,
const TargetTransformInfo &TTI,
- SmallPtrSetImpl<const Value*> &EphValues) {
+ const SmallPtrSetImpl<const Value*> &EphValues) {
++NumBlocks;
unsigned NumInstsBeforeThisBB = NumInsts;
for (const Instruction &I : *BB) {