loop_predictor.cc (13685:bb3377c81303) | loop_predictor.cc (14081:f99ed78e5263) |
---|---|
1/* 2 * Copyright (c) 2014 The University of Wisconsin 3 * 4 * Copyright (c) 2006 INRIA (Institut National de Recherche en 5 * Informatique et en Automatique / French National Research Institute 6 * for Computer Science and Applied Mathematics) 7 * 8 * All rights reserved. --- 346 unchanged lines hidden (view full) --- 355 "the prediction is correct"); 356 357 loopPredictorWrong 358 .name(name() + ".loopPredictorWrong") 359 .desc("Number of times the loop predictor is the provider and " 360 "the prediction is wrong"); 361} 362 | 1/* 2 * Copyright (c) 2014 The University of Wisconsin 3 * 4 * Copyright (c) 2006 INRIA (Institut National de Recherche en 5 * Informatique et en Automatique / French National Research Institute 6 * for Computer Science and Applied Mathematics) 7 * 8 * All rights reserved. --- 346 unchanged lines hidden (view full) --- 355 "the prediction is correct"); 356 357 loopPredictorWrong 358 .name(name() + ".loopPredictorWrong") 359 .desc("Number of times the loop predictor is the provider and " 360 "the prediction is wrong"); 361} 362 |
363size_t 364LoopPredictor::getSizeInBits() const 365{ 366 return (1ULL << logSizeLoopPred) * 367 ((useSpeculation ? 3 : 2) * loopTableIterBits + 368 loopTableConfidenceBits + loopTableTagBits + 369 loopTableAgeBits + useDirectionBit); 370} 371 |
|
363LoopPredictor * 364LoopPredictorParams::create() 365{ 366 return new LoopPredictor(this); 367} | 372LoopPredictor * 373LoopPredictorParams::create() 374{ 375 return new LoopPredictor(this); 376} |