<div dir="ltr">If you're trying to add new functionality, why not do it like<div><br></div><div>gcc -D<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">LEVEL1_DCACHE_LINESIZE</span>=$(getconf LEVEL1_DCACHE_LINESIZE)<br></div><div><br></div><div>More obvious and much less chance of clashing with something else.</div><div><br></div><div>The preprocessor is a very blunt hammer, doesn't know C++, doesn't respect any kind of scope rules. Avoid potential clashes.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 19, 2018 at 12:33 PM, U.Mutlu via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Tim Northover via llvm-dev wrote on 06/19/2018 09:22 PM:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, 19 Jun 2018 at 20:12, U.Mutlu <<a href="mailto:um@mutluit.com" target="_blank">um@mutluit.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can find more examples by searching for "DCLS getconf LEVEL1_DCACHE_LINESIZE".<br>
</blockquote>
<br>
Frankly, it all looks like cargo-cult optimization flagomancy. I'd<br>
suggest you drop it, it's not magical I promise.<br>
</blockquote>
<br></span>
Hey, I'm working on optimization, and I know "it works".<br>
<br>
Curious, have you ever heard of "false sharing" and "true sharing"<br>
and what lies behind them?<br>
Hint: it has todo with the cacheline and its size, and memory alignment etc...<br>
<br>
No need to start a sideline discussion here.<br>
<br>
Ciao<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</div></div></blockquote></div><br></div>