[PATCH] D94717: [LoopNest] Consider loop nest with inner loop guard using outer loop induction variable to be perfect

Sidharth Baveja via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 13:37:34 PST 2021


sidbav created this revision.
sidbav added reviewers: Whitney, Meinersbur, bmahjour, fhahn.
Herald added a subscriber: hiraditya.
sidbav requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently LoopNest does not consider loops with the inner loop guard using outer loop induction variable to perfect. 
This patch updates the getLoopGuardBranch in LoopInfo to accomplish this.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94717

Files:
  llvm/lib/Analysis/LoopInfo.cpp
  llvm/test/Analysis/LoopNestAnalysis/imperfectnest.ll
  llvm/test/Analysis/LoopNestAnalysis/perfectnest.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94717.316766.patch
Type: text/x-patch
Size: 6809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/e7d331a8/attachment.bin>


More information about the llvm-commits mailing list