[all-commits] [llvm/llvm-project] f5652b: [SCEV] Store type of expression inline, compute up...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Jul 26 02:47:22 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f5652b9800c997f3c76f84ea81de1175561ed59c
      https://github.com/llvm/llvm-project/commit/f5652b9800c997f3c76f84ea81de1175561ed59c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-07-26 (Sun, 26 Jul 2026)

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

  Log Message:
  -----------
  [SCEV] Store type of expression inline, compute up front (NFC). (#211891)

Add SCEV::Type to store the expressions immutable type. This slightly
increases object size for most sub-types, but avoids more expensive
recomputing of the type repeatedly.

Improves compile time slightly overall, more in SCEV-heavy workloads.

 * stage1-O3: -0.08%
 * stage1-ReleaseThinLTO: -0.07%
 * stage1-ReleaseLTO-g: -0.07%
 * stage1-aarch64-O3: -0.07%
 * stage2-O3: -0.08%


https://llvm-compile-time-tracker.com/compare.php?from=f9b12955f891bb086d12309d89656821d776e858&to=0e8df1e93422960640d0efd460212a463700a64a&stat=instructions:u

It looks like there's no notable increase in max-rss
https://llvm-compile-time-tracker.com/compare.php?from=f9b12955f891bb086d12309d89656821d776e858&to=0e8df1e93422960640d0efd460212a463700a64a&stat=max-rss

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



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