https://github.com/fhahn approved this pull request. LGTM, thanks! Might be worth adjusting the commit title/message to clarify that this adds constant folding to simplifyRecipe. https://github.com/llvm/llvm-project/pull/125365