home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / arch / 11024 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.8 KB

  1. Path: sparky!uunet!mcsun!sunic!dkuug!diku!torbenm
  2. From: torbenm@diku.dk (Torben AEgidius Mogensen)
  3. Newsgroups: comp.arch
  4. Subject: Re: DEC Alpha architecture issues
  5. Message-ID: <1992Nov23.122727.12708@odin.diku.dk>
  6. Date: 23 Nov 92 12:27:27 GMT
  7. References: <1992Nov18.112407.2518@doug.cae.wisc.edu> <1992Nov18.191730.1044@meiko.com> <lgnojjINN627@exodus.Eng.Sun.COM> <1992Nov19.204729.24714@crl.dec.com> <lgqbs2INNfh3@exodus.Eng.Sun.COM>
  8. Sender: torbenm@freke.diku.dk
  9. Organization: Department of Computer Science, U of Copenhagen
  10. Lines: 26
  11.  
  12. tremblay@flayout.Eng.Sun.COM (Marc Tremblay) writes:
  13.  
  14. >In article <1992Nov19.204729.24714@crl.dec.com> payne@crl.dec.com (Andrew Payne) writes:
  15. >>>The last sentence is key here. If branches can be predicted with decent
  16. >>>accuracy then it is hard to obtain benefits from conditional moves
  17. >>>over using conditional branches. 
  18. >>
  19. >>Do you have any data to back up this claim?
  20.  
  21. >Sure do. If branches can be predicted with 100% accuracy then the
  22. >version with conditional branches may run up to twice as fast. :-)
  23. >Seriously, the silly example above should nonetheless show that if
  24. >there are many instructions to guard, then potentially only half of the 
  25. >functional units will accomplish useful work while running the code
  26. >surrounded with conditional moves. 
  27.  
  28. If you can predict conditional branches, surely you can predict
  29. conditional moves and other conditional instructions as well, even
  30. using much the same techniques. In general any technique that can be
  31. used to optimize conditional branches can also be used to optimize
  32. other conditional instructions, so I can't see that using conditional
  33. instructions in general can ever be worse than using conditional
  34. branches only. One can then discuss how to reduce the penalty of
  35. having conditions only on branches.
  36.  
  37.     Torben Mogensen (torbenm@diku.dk)
  38.