[PATCH] D123400: [LoopCacheAnalysis] Consider dimension depth of the subscript reference when calculating cost
Bardia Mahjour via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 11:55:21 PDT 2022
bmahjour updated this revision to Diff 426460.
bmahjour added a comment.
Sorry for the delay, as I didn't get a chance to commit this before I went on vacation.
I just noticed that after fixed-size delinearization commit went in, this patch needed to be re-based and new values needed to be generated for the newly added `LoopnestFixedSize.ll`. I also noticed that this test exposes an issue with the analysis producing large cost values that can overflow the underlying int64_t type. This problem is not specific to this patch, as described in https://github.com/llvm/llvm-project/issues/55233. I think the overflow problem should be dealt with as a separate issue and will add it to the agenda for the next LoopOptWG call. In the mean time I've changed `LoopnestFixedSize.ll` to use smaller trip counts. @congzhe please let me know if you are ok with this change. We should recreate a test with large sizes as part of fixing 55233.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123400/new/
https://reviews.llvm.org/D123400
Files:
llvm/include/llvm/Analysis/LoopCacheAnalysis.h
llvm/lib/Analysis/LoopCacheAnalysis.cpp
llvm/test/Analysis/LoopCacheAnalysis/PowerPC/LoopnestFixedSize.ll
llvm/test/Analysis/LoopCacheAnalysis/PowerPC/matvecmul.ll
llvm/test/Analysis/LoopCacheAnalysis/PowerPC/multi-store.ll
llvm/test/Analysis/LoopCacheAnalysis/PowerPC/single-store.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123400.426460.patch
Type: text/x-patch
Size: 15741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220502/16953bf7/attachment.bin>
More information about the llvm-commits
mailing list