[PATCH] D97407: [LoopUnrollAndJam] Avoid repeated instructions for UAJ analysis

Danilo Carvalho Grael via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 24 11:54:19 PST 2021


dancgr created this revision.
Herald added subscribers: zzheng, kosarev, hiraditya.
dancgr requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Avoid visiting repeated instructions for processHeaderPhiOperands as it can cause a scenario of endless loop. Test case is attached and can be ran with `opt -basic-aa -tbaa -loop-unroll-and-jam  -allow-unroll-and-jam -unroll-and-jam-count=4`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97407

Files:
  llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
  llvm/test/Transforms/LoopUnrollAndJam/unroll-and-jam-many-instr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97407.326171.patch
Type: text/x-patch
Size: 17713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210224/335f6914/attachment.bin>


More information about the llvm-commits mailing list