[PATCH] D75981: [LV] Allow large RT checks, if they are a fraction of the scalar cost (WIP)

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 02:12:41 PST 2021


fhahn updated this revision to Diff 314337.
fhahn added a comment.

Rebased on top of current trunk. This version now can build MultiSource/SPEC2006/SPEC2000 with -O3 -flto without crashing.

The current version leads to a few more vectorized loops in some benchmarks:

  Tests: 236
  Same hash: 200 (filtered out)
  Remaining: 36
  Metric: loop-vectorize.LoopsVectorized
  
  Program                                        base   patch.lv-mem-cost diff
   test-suite...Source/Benchmarks/sim/sim.test     5.00   8.00            60.0%
   test-suite...chmarks/Rodinia/srad/srad.test     3.00   4.00            33.3%
   test-suite...rks/FreeBench/pifft/pifft.test    33.00  43.00            30.3%
   test-suite...CFP2000/177.mesa/177.mesa.test   386.00 424.00             9.8%
   test-suite...CI_Purple/SMG2000/smg2000.test    77.00  83.00             7.8%
   test-suite...pps-C/SimpleMOC/SimpleMOC.test    39.00  42.00             7.7%
   test-suite...oxyApps-C/miniGMG/miniGMG.test    44.00  46.00             4.5%
   test-suite.../CINT2000/176.gcc/176.gcc.test    99.00 102.00             3.0%
   test-suite...006/450.soplex/450.soplex.test    88.00  90.00             2.3%
   test-suite...lications/ClamAV/clamscan.test    97.00  99.00             2.1%
   test-suite...pplications/oggenc/oggenc.test   151.00 153.00             1.3%
   test-suite...006/447.dealII/447.dealII.test   970.00 982.00             1.2%


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75981/new/

https://reviews.llvm.org/D75981

Files:
  llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
  llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/runtime-check-size-based-threshold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75981.314337.patch
Type: text/x-patch
Size: 13349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210104/779fc547/attachment.bin>


More information about the llvm-commits mailing list