Skip to content

Commit

Permalink
Add peephole Optimize
Browse files Browse the repository at this point in the history
Add peephole Optimize
  • Loading branch information
kamil-adam committed Apr 16, 2023
1 parent c401260 commit 5b1c862
Show file tree
Hide file tree
Showing 519 changed files with 18,329 additions and 15,936 deletions.
23 changes: 11 additions & 12 deletions .output/actual/eta/eval/logged/Fast/from-eas/bottles.logged
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ dump: Memory
( MNatural 4 )
)
, ICF
( Labeled
( LImmediate 6 ) ( Branch NE )
( Branch
( BImmediate 6 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -82,8 +82,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 11 ) ( Branch NE )
( Branch
( BImmediate 11 ) NE
)
, ICF
( Mark
Expand All @@ -94,8 +94,7 @@ dump: Memory
( Cons 48 )
)
, IAL ( SIO OutputChar )
, ICF
( Labeled LTop ( Branch NE ) )
, ICF ( Branch BTop NE )
, ICF ( Labeled LTop Jump )
, ICF
( Mark
Expand All @@ -112,8 +111,8 @@ dump: Memory
( MNatural 12 )
)
, ICF
( Labeled
( LImmediate 14 ) ( Branch NE )
( Branch
( BImmediate 14 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -662,16 +661,16 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 32 ) ( Branch NE )
( Branch
( BImmediate 32 ) NE
)
, ICF
( Mark
( MNatural 42 )
)
, ICF
( Labeled
( LImmediate 0 ) ( Branch NE )
( Branch
( BImmediate 0 ) NE
)
, ICF
( Mark
Expand Down
54 changes: 23 additions & 31 deletions .output/actual/eta/eval/logged/Fast/from-eas/fact0 .logged
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 9 ) ( Branch NE )
( Branch
( BImmediate 9 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -173,16 +173,16 @@ dump: Memory
( MNatural 16 )
)
, ICF
( Labeled
( LImmediate 18 ) ( Branch NE )
( Branch
( BImmediate 18 ) NE
)
, ICF
( Mark
( MNatural 17 )
)
, ICF
( Labeled
( LImmediate 14 ) ( Branch NE )
( Branch
( BImmediate 14 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -276,8 +276,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 27 ) ( Branch NE )
( Branch
( BImmediate 27 ) NE
)
, ICF
( Mark
Expand All @@ -304,8 +304,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 29 ) ( Branch NE )
( Branch
( BImmediate 29 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -334,8 +334,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 19 ) ( Branch NE )
( Branch
( BImmediate 19 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -378,8 +378,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 35 ) ( Branch NE )
( Branch
( BImmediate 35 ) NE
)
, ICF
( Mark
Expand All @@ -390,8 +390,7 @@ dump: Memory
( Cons 48 )
)
, IAL ( SIO OutputChar )
, ICF
( Labeled LTop ( Branch NE ) )
, ICF ( Branch BTop NE )
, ICF ( Labeled LTop Jump )
, ICF
( Mark
Expand All @@ -408,8 +407,8 @@ dump: Memory
( MNatural 36 )
)
, ICF
( Labeled
( LImmediate 38 ) ( Branch NE )
( Branch
( BImmediate 38 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -547,8 +546,8 @@ dump: Memory
( MNatural 49 )
)
, ICF
( Labeled
( LImmediate 51 ) ( Branch NE )
( Branch
( BImmediate 51 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -632,14 +631,7 @@ dump: Memory
( Mark
( MNatural 58 )
)
, IAL
( SPure
( Indexed
( IImmediate 1 ) Move
)
)
, ICF
( Labeled LTop ( Branch NE ) )
, ICF ( Branch BSwapped NE )
, ICF
( Mark
( MNatural 59 )
Expand Down Expand Up @@ -676,8 +668,8 @@ dump: Memory
( MNatural 62 )
)
, ICF
( Labeled
( LImmediate 64 ) ( Branch NE )
( Branch
( BImmediate 64 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -709,7 +701,7 @@ dump: Memory
)
, End
]
, programCounter = 170
, programCounter = 169
, returnStack = IS []
}
, memoryStack = fromList
Expand Down
54 changes: 23 additions & 31 deletions .output/actual/eta/eval/logged/Fast/from-eas/fact1 .logged
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 9 ) ( Branch NE )
( Branch
( BImmediate 9 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -173,16 +173,16 @@ dump: Memory
( MNatural 16 )
)
, ICF
( Labeled
( LImmediate 18 ) ( Branch NE )
( Branch
( BImmediate 18 ) NE
)
, ICF
( Mark
( MNatural 17 )
)
, ICF
( Labeled
( LImmediate 14 ) ( Branch NE )
( Branch
( BImmediate 14 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -276,8 +276,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 27 ) ( Branch NE )
( Branch
( BImmediate 27 ) NE
)
, ICF
( Mark
Expand All @@ -304,8 +304,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 29 ) ( Branch NE )
( Branch
( BImmediate 29 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -334,8 +334,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 19 ) ( Branch NE )
( Branch
( BImmediate 19 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -378,8 +378,8 @@ dump: Memory
)
)
, ICF
( Labeled
( LImmediate 35 ) ( Branch NE )
( Branch
( BImmediate 35 ) NE
)
, ICF
( Mark
Expand All @@ -390,8 +390,7 @@ dump: Memory
( Cons 48 )
)
, IAL ( SIO OutputChar )
, ICF
( Labeled LTop ( Branch NE ) )
, ICF ( Branch BTop NE )
, ICF ( Labeled LTop Jump )
, ICF
( Mark
Expand All @@ -408,8 +407,8 @@ dump: Memory
( MNatural 36 )
)
, ICF
( Labeled
( LImmediate 38 ) ( Branch NE )
( Branch
( BImmediate 38 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -547,8 +546,8 @@ dump: Memory
( MNatural 49 )
)
, ICF
( Labeled
( LImmediate 51 ) ( Branch NE )
( Branch
( BImmediate 51 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -632,14 +631,7 @@ dump: Memory
( Mark
( MNatural 58 )
)
, IAL
( SPure
( Indexed
( IImmediate 1 ) Move
)
)
, ICF
( Labeled LTop ( Branch NE ) )
, ICF ( Branch BSwapped NE )
, ICF
( Mark
( MNatural 59 )
Expand Down Expand Up @@ -676,8 +668,8 @@ dump: Memory
( MNatural 62 )
)
, ICF
( Labeled
( LImmediate 64 ) ( Branch NE )
( Branch
( BImmediate 64 ) NE
)
, ICF
( Mark
Expand Down Expand Up @@ -709,7 +701,7 @@ dump: Memory
)
, End
]
, programCounter = 170
, programCounter = 169
, returnStack = IS []
}
, memoryStack = fromList
Expand Down
Loading

0 comments on commit 5b1c862

Please sign in to comment.