Skip to content

Commit db20910

Browse files
committed
SCP-3392 UPLC simplifier
This adds essentially a copy of the PIR inliner for UPLC. This has pretty good results, with a 5-20% speedup and size decrease for many programs.
1 parent 17e0965 commit db20910

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1051
-385
lines changed

nix/pkgs/haskell/materialized-darwin/.plan.nix/plutus-core.nix

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/pkgs/haskell/materialized-darwin/.plan.nix/plutus-tx-plugin.nix

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/pkgs/haskell/materialized-linux/.plan.nix/plutus-core.nix

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/pkgs/haskell/materialized-linux/.plan.nix/plutus-tx-plugin.nix

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/pkgs/haskell/materialized-windows/.plan.nix/plutus-core.nix

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/pkgs/haskell/materialized-windows/.plan.nix/plutus-tx-plugin.nix

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plutus-benchmark/nofib/test/Spec.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ testClausify = testGroup "clausify"
4646
, testCase "formula3" $ mkClausifyTest Clausify.F3
4747
, testCase "formula4" $ mkClausifyTest Clausify.F4
4848
, testCase "formula5" $ mkClausifyTest Clausify.F5
49-
, Tx.fitsInto "formula1 (size)" (Clausify.mkClausifyCode Clausify.F1) 5190
49+
, Tx.fitsInto "formula1 (size)" (Clausify.mkClausifyCode Clausify.F1) 4700
5050
, runTestNested $ Tx.goldenBudget "formulaBudget" $ Clausify.mkClausifyCode Clausify.F1
5151
]
5252

@@ -64,7 +64,7 @@ testKnights = testGroup "knights" -- Odd sizes call "error" because there are n
6464
, testCase "depth 100, 4x4" $ mkKnightsTest 100 4
6565
, testCase "depth 100, 6x6" $ mkKnightsTest 100 6
6666
, testCase "depth 100, 8x8" $ mkKnightsTest 100 8
67-
, Tx.fitsInto "depth 10, 4x4 (size)" (Knights.mkKnightsCode 10 4) 3669
67+
, Tx.fitsInto "depth 10, 4x4 (size)" (Knights.mkKnightsCode 10 4) 3299
6868
, runTestNested $ Tx.goldenBudget "knightsBudget" $ Knights.mkKnightsCode 10 4
6969
]
7070

@@ -92,7 +92,7 @@ testQueens = testGroup "queens"
9292
, testCase "Fc" $ mkQueensTest 5 Queens.Fc
9393
, runTestNested $ Tx.goldenBudget "queens5budget" $ Queens.mkQueensCode 5 Queens.Bt
9494
]
95-
, Tx.fitsInto "Bt (size)" (Queens.mkQueensCode 5 Queens.Bt) 3127
95+
, Tx.fitsInto "Bt (size)" (Queens.mkQueensCode 5 Queens.Bt) 2707
9696
]
9797

9898
---------------- Primes ----------------
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
({ cpu: 52200152258
2-
| mem: 174669548
1+
({ cpu: 48384265940
2+
| mem: 161852948
33
})
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
({ cpu: 10654421928
2-
| mem: 33460972
1+
({ cpu: 9147401987
2+
| mem: 28399272
33
})
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
({ cpu: 19730440366
2-
| mem: 62692642
1+
({ cpu: 17257762943
2+
| mem: 54387542
33
})

0 commit comments

Comments
 (0)