|
-
July 14th, 2004, 02:10 AM
#1
Pipelining using Ifs
If I am not wrong if is killing the pipelinging in the CPU. And since P4 machines has a lot of pipe-stages it will probably kill a lot of performance if you use a lot of them. But does anyone know if the CPU guesses that the If in VC++ is not true, or true, or if it depends on what the if does?
It would be so nice if you know you have an if (like an exception or something) and you know it will more or less never be called could give the compiler a sign and tell it to guess this if will not be true, so start on the next line after the if.
Hope for some serious techincal answers here...
ØØ
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|