[PATCH] D87879: [LoopInterchange] Add dominance check to guarantee output dependency order
Mindong Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 17 21:09:11 PDT 2020
mdchen created this revision.
mdchen added reviewers: fhahn, efriedma.
mdchen added a project: LLVM.
Herald added subscribers: llvm-commits, hiraditya.
mdchen requested review of this revision.
For a loop containing the following diamond structure:
BB#1
/ \
BB#2 BB#3
\ /
BB#4
If the BranchInst condition in BB#1 relates to the loop induction
variable, and BB#3 and BB#4 both have stores writing to the same
memory location. Then these stores may have implicit loop-carried
order which could be broken after interchanging.
Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=47523
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87879
Files:
llvm/lib/Transforms/Scalar/LoopInterchange.cpp
llvm/test/Transforms/LoopInterchange/pr47523-implicit-out-dep-order.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87879.292700.patch
Type: text/x-patch
Size: 7848 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200918/e62f7318/attachment.bin>
More information about the llvm-commits
mailing list