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.

貢獻者指南