[PATCH] A new HeapToStack allocation promotion pass
Sean Silva
silvas at purdue.edu
Mon Sep 23 18:16:37 PDT 2013
Does there need to be special frontend logic to keep this out of e.g. kernel builds? Kernel code typically is running on a very small stack and deliberately calls malloc/kalloc/whatever even for a value that is live for a single block. Replacing those calls with stack allocation might result in some nasty kernel panic debugging for some poor soul.
http://llvm-reviews.chandlerc.com/D1745
More information about the llvm-commits
mailing list