[PATCH] D88471: [Passes] Run peeling as part of simple/full loop unrolling.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 03:41:08 PDT 2020


lebedev.ri added a comment.
Herald added a subscriber: pengfei.

The patch doesn't seem to apply for me:

  llvm-project$ arc patch --nobranch D88471 --skip-dependencies
  You have untracked files in this working copy.
  
    Working copy: /repositories/llvm-project/
  
    Untracked changes in working copy:
    (To ignore these 4 change(s), add them to ".git/info/exclude".)
      llvm/CMakeLists.txt.user.4.9-pre1
      llvm/CMakeLists.txt.user.old
      llvm/lib/Transforms/IPO/PassManagerBuilder.cpp.rej
      llvm/utils/compare-stats.py
  
      Ignore these 4 untracked file(s) and continue? [y/N] y
  
   INFO  Base commit is not in local repository; trying to fetch.
  
  
      This diff is against commit 6c1ce7e277624882c6139b978f90a489d638aff8, but
      the commit is nowhere in the working copy. Try to apply it against the
      current working copy state? (0be51c09131f92651e5bad9ca0e3fb8fdc37d84a)
      [Y/n] y
  
  Checking patch llvm/test/Transforms/PhaseOrdering/X86/peel-before-lv-to-enable-vectorization.ll...
  error: llvm/test/Transforms/PhaseOrdering/X86/peel-before-lv-to-enable-vectorization.ll: does not exist in index
  Checking patch llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp...
  Checking patch llvm/lib/Transforms/IPO/PassManagerBuilder.cpp...
  error: while searching for:
    if (EnableLoopInterchange)
      MPM.add(createLoopInterchangePass()); // Interchange loops
  
    // Unroll small loops
    MPM.add(createSimpleLoopUnrollPass(OptLevel, DisableUnrollLoops,
                                       ForgetAllSCEVInLoopUnroll));
    addExtensionsToPM(EP_LoopOptimizerEnd, MPM);
  
  error: patch failed: llvm/lib/Transforms/IPO/PassManagerBuilder.cpp:445
  error: while searching for:
    if (EnableLoopInterchange)
      PM.add(createLoopInterchangePass());
  
    // Unroll small loops
    PM.add(createSimpleLoopUnrollPass(OptLevel, DisableUnrollLoops,
                                      ForgetAllSCEVInLoopUnroll));
    PM.add(createLoopVectorizePass(true, !LoopVectorize));
  
  error: patch failed: llvm/lib/Transforms/IPO/PassManagerBuilder.cpp:1036
  Checking patch llvm/include/llvm/Transforms/Scalar/LoopUnrollPass.h...
  Checking patch llvm/include/llvm/Transforms/Scalar.h...
  Hunk #1 succeeded at 184 (offset 6 lines).
  Applied patch llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp cleanly.
  Applying patch llvm/lib/Transforms/IPO/PassManagerBuilder.cpp with 2 rejects...
  Rejected hunk #1.
  Rejected hunk #2.
  Applied patch llvm/include/llvm/Transforms/Scalar/LoopUnrollPass.h cleanly.
  Applied patch llvm/include/llvm/Transforms/Scalar.h cleanly.
  
   Patch Failed! 
  Usage Exception: Unable to apply patch!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88471



More information about the llvm-commits mailing list