[all-commits] [llvm/llvm-project] ab9b23: [SCEV] Use pattern match to check ZExt(Add()). (NFC)

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Jul 31 04:47:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ab9b23c446531f5d9f081123c9f2fde4e8a334eb
      https://github.com/llvm/llvm-project/commit/ab9b23c446531f5d9f081123c9f2fde4e8a334eb
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-07-31 (Thu, 31 Jul 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/ScalarEvolutionPatternMatch.h
    M llvm/lib/Analysis/ScalarEvolution.cpp

  Log Message:
  -----------
  [SCEV] Use pattern match to check ZExt(Add()). (NFC)

Follow-up to
https://github.com/llvm/llvm-project/pull/151227#pullrequestreview-3074670031
to check the inner expression is an Add before calling getTruncateExpr.

Adds a new matcher that just matches and captures SCEVAddExpr, to
support matching a SCEVAddExpr with arbitrary number of operands.



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