[all-commits] [llvm/llvm-project] b27f14: [SCEV][NFC-mostly] Remove constant handling in Tri...

Joshua Cao via All-commits all-commits at lists.llvm.org
Tue May 16 20:56:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b27f14d920e17d0216bba1dd1d051137627ab356
      https://github.com/llvm/llvm-project/commit/b27f14d920e17d0216bba1dd1d051137627ab356
  Author: Joshua Cao <cao.joshua at yahoo.com>
  Date:   2023-05-16 (Tue, 16 May 2023)

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

  Log Message:
  -----------
  [SCEV][NFC-mostly] Remove constant handling in TripMultiple computation

After landing more precise trip multiples in
https://reviews.llvm.org/D149529, the SCEV multiple computation handles
constants, so there is no longer any need for special constant handling
in getSmallConstantTripMultiple.

This patch can improve the multiple of a non-constant SCEV that is huge
(>=2**32). This is very rare in practice.

Differential Revision: https://reviews.llvm.org/D150541




More information about the All-commits mailing list