[SCEV][NFC-mostly] Remove constant handling in TripMultiple computation
authorJoshua Cao <cao.joshua@yahoo.com>
Mon, 15 May 2023 06:53:45 +0000 (23:53 -0700)
committerJoshua Cao <cao.joshua@yahoo.com>
Wed, 17 May 2023 03:24:31 +0000 (20:24 -0700)
commitb27f14d920e17d0216bba1dd1d051137627ab356
tree993ab9704f27f9ba9fdc410ef740e4a70e51ac19
parentcae7ef260458f66b4c6b2b8075db7cb6afe6bf9e
[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
llvm/lib/Analysis/ScalarEvolution.cpp