[PATCH] D98967: [Analysis]Add getPointersDiff function to improve compile time.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 24 02:25:25 PDT 2021
RKSimon added inline comments.
================
Comment at: llvm/lib/Analysis/LoopAccessAnalysis.cpp:1226
+ for (const std::pair<int64_t, int> &Pair : Offsets) {
+ IsConsecutive = IsConsecutive && Cnt == Pair.second;
+ SortedIndices[Cnt] = Pair.second;
----------------
@ABataev IsConsecutive is false so isn't this line redundant?
Noticed by static analysis.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98967/new/
https://reviews.llvm.org/D98967
More information about the llvm-commits
mailing list