Skip to content

Commit 1dd915e

Browse files
authored
Merge pull request algorithmica-org#58 from mode-six/patch-2
fix typo
2 parents bd3a2d0 + 93df425 commit 1dd915e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/english/hpc/pipelining/branchless.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ This way you can eliminate branching, but this comes at the cost of evaluating *
9090

9191
### When It Is Beneficial
9292

93-
Using predication eliminates [a structural hazard](../hazard), but introduces a data hazard. These is still a pipeline stall, but it is a cheaper one: you only need to wait for `cmov` to be resolved, and not flush the entire pipeline in case of a mispredict.
93+
Using predication eliminates [a structural hazard](../hazard), but introduces a data hazard. There is still a pipeline stall, but it is a cheaper one: you only need to wait for `cmov` to be resolved, and not flush the entire pipeline in case of a mispredict.
9494

9595
However, there are many situations when it is more efficient to leave branchy code as it is. This is the case when the cost of computing *both* branches instead of just *one* outweighs the penalty for the potential branch mispredictions.
9696

0 commit comments

Comments
 (0)