Disable arm-gepopt by default

Michael Zolotukhin mzolotukhin at apple.com
Mon Apr 20 13:35:36 PDT 2015


Hi James,

I’m attaching two disasm files for the TwoFish hot function, the first one (slow.s) is obtained by compiler with default options, the second one (fast.s) - with aarch64-gep-opt=false.
It’s a pretty big function, and for me it’s not obvious what piece of code is responsible for the total performance. However, slow.s is 100 lines longer, and that’s corresponds to the performance I observe (for slow.s geekbench score of the Twofish is 733, for fast.s - 951, higher is better).

The tests arm64-cse.ll and arm64-addr-mode-folding.ll also might give some ideas what’s wrong - and we need to fix them, or properly explain why it’s ok to disable them (please note that they were written exactly to detect issues that had been fixed once).

I totally support that we need to understand what’s wrong, and what I suggest is a temporal disabling until it’s done.

Thanks,
Michael



> On Apr 18, 2015, at 9:23 AM, James Molloy <james at jamesmolloy.co.uk> wrote:
> 
> Hi Michael,
> 
> I'm not too keen on disabling this without understanding what it's doing wrong. It seems like a large hammer. 
> 
> If this is the pass I'm thinking of, it was introduced by Hao to help remove many redundant multiplies formed by complex GEPs, and did manifest in spec, gobmk was the main culprit iirc. 
> 
> It will also affect in order cores more than out of order ones- would it be ok to understand whether the regression is a deficiency in the pass easily fixed or if it is something more fundamental?
> 
> James
> On Fri, 17 Apr 2015 at 19:48, Michael Zolotukhin <mzolotukhin at apple.com <mailto:mzolotukhin at apple.com>> wrote:
> Hi,
> 
> Recently I’ve found that LLVM regressed on a TwoFish test (from geekbench) when comparing relatively new compiler and a year-old one. The performance regression is pretty big - about 20%, so I decided to investigate it further and understand what change exposed that. Triaging led me to r222328 and r222331, which introduced a new ARM64-specific pass for hoisting constant offsets from addresses. It claimed some gains on SPECS, but when I turned it off, I saw no regressions there (I checked SPEC2006/ref-input set, built with PGO and LTO).
> 
> Moreover, when the patch was committed, it effectively disabled two existing regression tests, which is not good I think.
> 
> Is it ok to disable this pass by default and enable the tests back? We can turn it back on when we are confident that all tests pass, and there are no new regressions. Any objections?
> 
> Thanks,
> Michael
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu <mailto:llvm-commits at cs.uiuc.edu>
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits <http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150420/297fb7ea/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fast.s
Type: application/octet-stream
Size: 51974 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150420/297fb7ea/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150420/297fb7ea/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: slow.s
Type: application/octet-stream
Size: 55945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150420/297fb7ea/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150420/297fb7ea/attachment-0002.html>


More information about the llvm-commits mailing list