[PATCH] D86364: [ValueTracking] Interpret GEPs as a series of adds multiplied by the related scaling factor
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 20 13:50:09 PDT 2020
efriedma added a comment.
A couple special cases might improve performance:
1. Check for and skip zero array indexes, similar to the special case for zero struct indexes, since they show up frequently.
2. Accumulate constant indexes separately from variable ones: you can compute the sum of the constant indexes, and computeForAddSub with the result, instead of using computeForAddSub on each index.
3. Add a special case for computeForAddSub on a constant; the arithmetic is a bit simpler.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86364/new/
https://reviews.llvm.org/D86364
More information about the llvm-commits
mailing list