[all-commits] [llvm/llvm-project] eccf6a: [SCEV] Return a SCEVUse from getAddRecExpr and pro...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Sep 15 06:09:03 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eccf6a14a802f941acc3fde5950c20992874f542
      https://github.com/llvm/llvm-project/commit/eccf6a14a802f941acc3fde5950c20992874f542
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/include/llvm/Analysis/ScalarEvolution.h
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
    M llvm/unittests/Analysis/ScalarEvolutionTest.cpp

  Log Message:
  -----------
  [SCEV] Return a SCEVUse from getAddRecExpr and propagate use flags. (#221606)

Same as https://github.com/llvm/llvm-project/pull/220007 but for
getAddRecExpr:

Pass both expression and use specific flags to getAddRecExpr and 
propagate the use flags, if valid conservatively. That is, the final expression
forms an AddRec with the same operands. For example, it is not valid to
propagate the use flags if other (sub-)expressions have been inlined.

It also includes a few mechanical changes, to update users that still
expected const SCEV *.

PR: https://github.com/llvm/llvm-project/pull/221606



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list