Eli, thanks for responding, unfortunately, this did not resolve my issue. It's a locally allocated array in the C code, but I'm not seeing any alloca in the IR just geps from the variable, which is never setup.<br>
<br><div class="gmail_quote">On Wed, Aug 15, 2012 at 11:33 AM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Wed, Aug 15, 2012 at 11:26 AM, Ryan Taylor <<a href="mailto:ryta1203@gmail.com">ryta1203@gmail.com</a>> wrote:<br>
> I have a const array allocated inside a function and the IR is showing this<br>
> has a global function (ie. there is no allocation for the space inside the<br>
> function).<br>
><br>
> For example:<br>
><br>
> const int32 local_array[256] = {constValue, constValue, ..... }<br>
><br>
> Is there any particular reason this may be occuring?<br>
<br>
</div></div>It's an optimization; IIRC, you can turn it off with -fno-merge-all-constants.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Eli<br>
</font></span></blockquote></div><br>