<div dir="ltr">I applies the two patches to llvm (synced at r311358). The attached perf_nops.mir test fails with the message:<div>LLVM ERROR: symbol '.L0$pb' can not be undefined in a subtraction expression<br></div><div><br></div><div>Indeed if I generate the assembly, I don't see L0$pb defined. Am I missing something?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 20, 2017 at 7:35 AM, Paparo Bivas, Omer <span dir="ltr"><<a href="mailto:omer.paparo.bivas@intel.com" target="_blank">omer.paparo.bivas@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Attached is the said patch (CodePadding_x86.patch). I'm also attaching the infrastructure patch it relies on (CodePadding_inf.patch), which is identical to the one I've sent a few days ago.<br>
<br>
Thanks,<br>
Omer<br>
<span class="im HOEnZb"><br>
-----Original Message-----<br>
From: Omer Paparo Bivas via Phabricator [mailto:<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.<wbr>org</a>]<br>
Sent: Sunday, August 20, 2017 17:30<br>
To: Paparo Bivas, Omer <<a href="mailto:omer.paparo.bivas@intel.com">omer.paparo.bivas@intel.com</a>>; Aboud, Amjad <<a href="mailto:amjad.aboud@intel.com">amjad.aboud@intel.com</a>>; Rackover, Zvi <<a href="mailto:zvi.rackover@intel.com">zvi.rackover@intel.com</a>>; Ansari, Zia <<a href="mailto:zia.ansari@intel.com">zia.ansari@intel.com</a>>; <a href="mailto:craig.topper@gmail.com">craig.topper@gmail.com</a>; <a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a><br>
</span><span class="im HOEnZb">Cc: Elovikov, Andrei <<a href="mailto:andrei.elovikov@intel.com">andrei.elovikov@intel.com</a>>; <a href="mailto:gberry@codeaurora.org">gberry@codeaurora.org</a>; <a href="mailto:wmi@google.com">wmi@google.com</a>; <a href="mailto:eraman@google.com">eraman@google.com</a>; <a href="mailto:kyle%2Bllvm@iteratee.net">kyle+llvm@iteratee.net</a>; <a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>; <a href="mailto:davidxl@google.com">davidxl@google.com</a>; <a href="mailto:llvm-dev@redking.me.uk">llvm-dev@redking.me.uk</a>; <a href="mailto:simon.dardis@imgtec.com">simon.dardis@imgtec.com</a>; <a href="mailto:mgorny@gentoo.org">mgorny@gentoo.org</a>; <a href="mailto:javed.absar@arm.com">javed.absar@arm.com</a>; <a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>; Ben Simhon, Oren <<a href="mailto:oren.ben.simhon@intel.com">oren.ben.simhon@intel.com</a>>; Saba, Lama <<a href="mailto:lama.saba@intel.com">lama.saba@intel.com</a>><br>
Subject: [PATCH] D34393: Adding code padding for performance stability - infrastructure<br>
<br>
</span><div class="HOEnZb"><div class="h5">opaparo added a comment.<br>
<br>
In <a href="https://reviews.llvm.org/D34393#844569" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D34393#844569</a>, @davidxl wrote:<br>
<br>
> Tried the two patches with our internal benchmark -- the alignment related performance issue is still there.  The problem disappears with -mllvm -x86-experimental-pref-loop-<wbr>alignment=5 is used.<br>
<br>
<br>
I can think of two reasons that might have caused the patch to fail to help you:<br>
<br>
1. This optimization is not enabled for all architectures. Use -target-cpu to specify the target (if you haven't already) to make sure you are compiling for the desired architecture, which will enable the optimization (if relevant). See the constructor of X86MCCodePadder for the list of architectures for which the optimization is enabled.<br>
2. You might have encountered a different alignment issue than the one handled by this patch. I will send you soon another patch (which was not yet uploaded for review) that addresses another alignment issue (in addition to the first one), which will hopefully handle your case. Regardless of the results you'll get, could you send a small reproducer for this problem? I would like to investigate it and see the kind of alignment issue we are facing here.<br>
<br>
<br>
<br>
<br>
<a href="https://reviews.llvm.org/D34393" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D34393</a><br>
<br>
<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">------------------------------<wbr>------------------------------<wbr>---------<br>
Intel Israel (74) Limited<br>
<br>
This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.<br>
</div></div></blockquote></div><br></div>