CakeML/cakeml

Constant propagation in word_simp

Aberta

#1.168 aberto em 5 de mai. de 2025

 (6 comentários) (0 reação) (0 responsável)Standard ML (98 forks)auto 404
good first issuelow effort

Métricas do repositório

Stars
 (1.169 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador