CakeML/cakeml

Constant propagation in word_simp

Ouverte

#1 168 ouverte le 5 mai 2025

 (6 commentaires) (0 réaction) (0 personne assignée)Standard ML (98 forks)auto 404
good first issuelow effort

Métriques du dépôt

Stars
 (1 169 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur