2 Commits

Author SHA1 Message Date
Lauri Vasama ddcaa1fad2 Improve defer-allocas
* Discover deferrable allocas in a separate pass before applying changes
  in order to avoid double work.
* Defer allocas to just before the first user or the terminator, if no
  user exists in the target block.
* Move allocas when the target block is the same as the original block.
2026-05-25 09:00:41 +02:00
Lauri Vasama 5740ac0c9c Add defer-allocas LLVM pass 2026-05-13 15:32:33 +02:00