[PATCH] D73064: [LoopCacheAnalysis]: Add support for negative stride
Rachel Craik via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 13:13:47 PST 2020
rcraik created this revision.
rcraik added reviewers: kbarton, jdoerfert, Meinersbur, bmahjour, etiotto, Whitney.
Herald added subscribers: llvm-commits, jsji, hiraditya, nemanjai.
Herald added a project: LLVM.
LoopCacheAnalysis currently assumes the loop will be iterated over in
a forward direction. This patch addresses the issue by using the
absolute value of the stride when iterating backwards.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73064
Files:
llvm/lib/Analysis/LoopCacheAnalysis.cpp
llvm/test/Analysis/LoopCacheAnalysis/PowerPC/compute-cost.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73064.239190.patch
Type: text/x-patch
Size: 4165 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200120/23a3f255/attachment.bin>
More information about the llvm-commits
mailing list