Content deleted Content added
→Cite book, tweak cites |
Guy Harris (talk | contribs) →Overview: It's a conference paper, so use {{cite conference}}. |
||
Line 44:
Besides eliminating branches, less code is needed in total, provided the architecture provides predicated instructions. While this does not guarantee faster execution in general, it will if the <tt>dosomething</tt> and <tt>dosomethingelse</tt> blocks of code are short enough.
Predication's simplest form is ''partial predication'', where the architecture has ''conditional move'' or ''conditional select'' instructions. Conditional move instructions write the contents of one register over another only if the predicate's value is true, whereas conditional select instructions choose which of two registers has its contents written to a third based on the predicate's value. A more generalized and capable form is ''full predication''. Full predication has a set of predicate registers for storing predicates (which allows multiple nested or sequential branches to be simultaneously eliminated) and most instructions in the architecture have a register specifier field to specify which predicate register supplies the predicate.<ref>{{cite
==Advantages==
|