Elektrine lite

← Feed

@porglezomp@mastodon.social

Post #2639721

2025-05-15 21:47 UTC

@ela@infosec.exchange I wrote a blog post years ago that shows all the intermediate steps of performing this optimization: https://blog.witchoflight.com/2018/llvm-hearts-peano-addition/

Replies (2)

  • @compfu@mograph.social 2025-05-16 06:57

    @porglezomp@mastodon.social @ela@infosec.exchange very cool. I have no idea about compiler internals but were able to follow this thanks to the step by step C equivalents.

    Open ##2639722

  • @nrab@hachyderm.io 2025-05-17 09:23

    @porglezomp@mastodon.social @ela@infosec.exchange you start with the tail recursion optimization but here isEven is very clearly not tail recursive. Do you know how LLVM handles that?

    Open ##2639723