CakeML/cakeml

Constant propagation in word_simp

オープン

#1,168 opened on 2025/05/05

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)Standard ML (98 件のフォーク)auto 404
good first issuelow effort

Repository metrics

Stars
 (1,169 個のスター)
PR merge metrics
 (PR metrics pending)

説明

At the moment, constant foldng/propagation in wordLang is limited to expressions:

https://github.com/CakeML/cakeml/blob/master/compiler/backend/word_simpScript.sml#L156

This issue is about extending it to work for instructions as well:

https://github.com/CakeML/cakeml/blob/master/compiler/backend/word_simpScript.sml#L220

(and probably other simple places that could benefit).

This was reported by @talsewell in the context of Pancake programs.

コントリビューターガイド