Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/MLRISC/x86/instructions/x86FreqProps.sml
ViewVC logotype

Diff of /sml/trunk/src/MLRISC/x86/instructions/x86FreqProps.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 428, Wed Sep 8 09:47:00 1999 UTC revision 469, Wed Nov 10 22:42:52 1999 UTC
# Line 8  Line 8 
8    
9     structure I = X86Instr     structure I = X86Instr
10    
11     fun branchProb(I.ANNOTATION{a=BasicAnnotations.BRANCH_PROB b,...}) = b     fun branchProb(I.ANNOTATION{a, i, ...}) =
12       | branchProb(I.ANNOTATION{i,...}) = branchProb i          (case #peek BasicAnnotations.BRANCH_PROB a of
13               SOME b => b
14             | NONE => branchProb i
15            )
16       | branchProb(I.JCC{cond=I.EQ,...}) = 10       | branchProb(I.JCC{cond=I.EQ,...}) = 10
17       | branchProb(I.JCC{cond=I.O,...}) = 0 (* overflow *)       | branchProb(I.JCC{cond=I.O,...}) = 0 (* overflow *)
18       | branchProb(I.JCC{cond=I.NE,...}) = 90       | branchProb(I.JCC{cond=I.NE,...}) = 90

Legend:
Removed from v.428  
changed lines
  Added in v.469

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0