[PATCH] D41953: [LoopUnroll] Unroll and Jam

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 16 10:00:59 PDT 2018


dmgreen updated this revision to Diff 142645.
dmgreen edited the summary of this revision.
dmgreen added a comment.
Herald added a reviewer: deadalnix.

This makes things into a new pass, currently disabled by default. I have attempted to copy what the unrolled does, without duplicating too much code. Pragmas and options should work, although I will need to add a few more tests for the different behaviours. I have tried to make it so that any unroll pragma will prevent unroll-and-jam, and added equivalent options/pragmas for unroll and jam. It still uses the unroll code as much as possible.

I have the clang side of the pragmas too, which I'll put up (although they may only even be useful for testing).


https://reviews.llvm.org/D41953

Files:
  include/llvm-c/Transforms/Scalar.h
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/InitializePasses.h
  include/llvm/LinkAllPasses.h
  include/llvm/Transforms/Scalar.h
  include/llvm/Transforms/Scalar/LoopUnrollAndJamPass.h
  include/llvm/Transforms/Utils/UnrollLoop.h
  lib/Analysis/DependenceAnalysis.cpp
  lib/Passes/PassBuilder.cpp
  lib/Passes/PassRegistry.def
  lib/Target/ARM/ARMTargetTransformInfo.cpp
  lib/Transforms/IPO/PassManagerBuilder.cpp
  lib/Transforms/Scalar/CMakeLists.txt
  lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
  lib/Transforms/Scalar/LoopUnrollPass.cpp
  lib/Transforms/Scalar/Scalar.cpp
  lib/Transforms/Utils/CMakeLists.txt
  lib/Transforms/Utils/LoopUnroll.cpp
  lib/Transforms/Utils/LoopUnrollAndJam.cpp
  test/Transforms/LoopUnrollAndJam/disable.ll
  test/Transforms/LoopUnrollAndJam/unprofitable.ll
  test/Transforms/LoopUnrollAndJam/unroll-and-jam.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41953.142645.patch
Type: text/x-patch
Size: 134524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180416/b82c4961/attachment-0001.bin>


More information about the llvm-commits mailing list