mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
fix typos in comments
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216424 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5436,13 +5436,13 @@ LoopVectorizationCostModel::selectUnrollFactor(bool OptForSize,
|
|||||||
// -- The unroll heuristics --
|
// -- The unroll heuristics --
|
||||||
// We unroll the loop in order to expose ILP and reduce the loop overhead.
|
// We unroll the loop in order to expose ILP and reduce the loop overhead.
|
||||||
// There are many micro-architectural considerations that we can't predict
|
// There are many micro-architectural considerations that we can't predict
|
||||||
// at this level. For example frontend pressure (on decode or fetch) due to
|
// at this level. For example, frontend pressure (on decode or fetch) due to
|
||||||
// code size, or the number and capabilities of the execution ports.
|
// code size, or the number and capabilities of the execution ports.
|
||||||
//
|
//
|
||||||
// We use the following heuristics to select the unroll factor:
|
// We use the following heuristics to select the unroll factor:
|
||||||
// 1. If the code has reductions the we unroll in order to break the cross
|
// 1. If the code has reductions, then we unroll in order to break the cross
|
||||||
// iteration dependency.
|
// iteration dependency.
|
||||||
// 2. If the loop is really small then we unroll in order to reduce the loop
|
// 2. If the loop is really small, then we unroll in order to reduce the loop
|
||||||
// overhead.
|
// overhead.
|
||||||
// 3. We don't unroll if we think that we will spill registers to memory due
|
// 3. We don't unroll if we think that we will spill registers to memory due
|
||||||
// to the increased register pressure.
|
// to the increased register pressure.
|
||||||
@@ -5452,7 +5452,7 @@ LoopVectorizationCostModel::selectUnrollFactor(bool OptForSize,
|
|||||||
if (UserUF != 0)
|
if (UserUF != 0)
|
||||||
return UserUF;
|
return UserUF;
|
||||||
|
|
||||||
// When we optimize for size we don't unroll.
|
// When we optimize for size, we don't unroll.
|
||||||
if (OptForSize)
|
if (OptForSize)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user