Hi Duncan,<br><br>You mean - what happens if DragonEgg is invoked with GCC optimization? I tried -O3 and -fplugin-arg-dragonegg-llvm-ir-optimize=1, but nothing changed.<br><br>- D.<br><br><div class="gmail_quote">2013/1/8 Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On 04/01/13 15:58, Duncan Sands wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
PS: Another possibility is to do link-time optimization, since at that point the<br>
optimizers are capable of finding out if that global is used anywhere else or<br>
not.<br>
</blockquote>
<br></div></div>
By the way, do the GCC optimizers get this, i.e. remove the loads?<br>
<br>
Ciao, Duncan.<br>
</blockquote></div><br>