[PATCH] D99716: [LoopFusion] Bails out if only the second candidate is guarded (PR48060)

Ta-Wei Tu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 1 03:40:37 PDT 2021


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

If only the second candidate loop is guarded while the first one is not, fusioning
two loops might not be valid but this check is currently missing.

Fixes https://bugs.llvm.org/show_bug.cgi?id=48060


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99716

Files:
  llvm/lib/Transforms/Scalar/LoopFuse.cpp
  llvm/test/Transforms/LoopFusion/pr48060.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99716.334639.patch
Type: text/x-patch
Size: 4165 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210401/270b0c1d/attachment.bin>


More information about the llvm-commits mailing list