[all-commits] [llvm/llvm-project] 964526: [LAA] Factor out logic to compute dependence dista...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Nov 23 14:09:58 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96452676e534c70a652ffdf260ee849290f374c4
      https://github.com/llvm/llvm-project/commit/96452676e534c70a652ffdf260ee849290f374c4
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp

  Log Message:
  -----------
  [LAA] Factor out logic to compute dependence distance. (NFCI)

This patch refactors the logic to compute the dependence distance,
stride, size and write info to a separate function. This limits the
scope of various A* and B* variables, which in turn makes it easier to
reason about their uses.

In particular this makes it more explicit why dropping the various
std::swaps as done in https://github.com/llvm/llvm-project/pull/70819/
is valid.




More information about the All-commits mailing list