[PATCH] D63440: [LoopUnroll] Generate sub nuw for loop index

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 09:25:09 PDT 2019


samparker created this revision.
samparker added reviewers: dmgreen, fhahn, anna.
Herald added subscribers: arphaman, zzheng.
Herald added a project: LLVM.

Use Call NUWSub to generate the indexes within the unrolled body since we know that the value won't be wrapping around zero.


Repository:
  rL LLVM

https://reviews.llvm.org/D63440

Files:
  lib/Transforms/Utils/LoopUnrollRuntime.cpp
  test/Transforms/LoopUnroll/nuw-backedge.ll
  test/Transforms/LoopUnroll/runtime-loop-multiple-exits.ll
  test/Transforms/LoopUnroll/runtime-unroll-remainder.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63440.205098.patch
Type: text/x-patch
Size: 4894 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190617/e16d643c/attachment.bin>


More information about the llvm-commits mailing list