Looking at a simple test example disassembly to demonstrate Emscripten, I noticed a potential optimization opportunity.
See the gist here: https://gist.github.com/hackcasual/e0262caec12bd60b2fe1 C++ is in a comment on top, compiled with -Oz For example, q and p are pointers allocated on the stack, however as their lifetimes don't overlap couldn't p be dropped and just q used? Similar to what the registerization pass does. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
