Skip to content

Commit

Permalink
Merge pull request #274 from ryukzak/constant-folding-problem
Browse files Browse the repository at this point in the history
Add issue detail on constant folding
  • Loading branch information
ryukzak committed Jan 21, 2024
2 parents b91a783 + b235f5f commit 84acffd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion test/NITTA/Model/ProcessorUnits/Tests/DSL/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ tests =
, constant 2 ["!2#0"]
, constant 1 ["!1#0"]
]
-- FIXME: https://github.com/ryukzak/nitta/issues/196
-- should be:
-- [ constant 3 ["_0#d"] ]
[ constant 3 ["_0#d"]
, constant 2 ["!2#0"] -- FIXME: Do we actually need this?
, constant 2 ["!2#0"]
, constant 1 ["!1#0"]
]
>>= \r -> assertRefactor r
Expand Down
6 changes: 2 additions & 4 deletions web/src/components/SubforestTables/Columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,10 @@ export function showBreakLoop(decision: BreakLoop): ReactElement {
export function showConstantFolding(d: ConstantFolding): ReactElement {
return (
<div>
{d.cRefOld.map((e: FView) => e.fvFun).join("\n")}
<br />
{d.cRefOld.map((e: FView) => <> {e.fvFun} <br/></>)}
<Icon.ArrowDown />
<br />
{d.cRefNew.map((e: FView) => e.fvFun).join(", ")}
<br />
{d.cRefNew.map((e: FView) => <> {e.fvFun} <br/></>)}
</div>
);
}
Expand Down

0 comments on commit 84acffd

Please sign in to comment.