Skip to content
Unverified Commit 28865da3 authored by Philip Reames's avatar Philip Reames Committed by GitHub
Browse files

[LSR][term-fold] Adjust expansion budget based on trip count (#80304)

Follow up to https://github.com/llvm/llvm-project/pull/74747



This change extends the previously added fixed expansion threshold by
scaling down the cost allowed for an expansion for a loop with either a
small known trip count or a profile which indicates the trip count is
likely small. The goal here is to improve code generation for a loop
nest where the outer loop has a high trip count, and the inner loop runs
only a handful of iterations.

---------

Co-authored-by: default avatarNikita Popov <github@npopov.com>
parent b629414a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment