CakeML/cakeml

Constant propagation in word_simp

开放

#1,168 创建于 2025年5月5日

 (6 条评论) (0 个反应) (0 位负责人)Standard ML (98 个派生)auto 404
good first issuelow effort

仓库指标

星标
 (1,169 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南