[all-commits] [llvm/llvm-project] 6eab5c: [LSR] Early exit for RateFormula when it is alread...
eop Chen via All-commits
all-commits at lists.llvm.org
Wed Jun 1 21:02:54 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6eab5cade71459bc187eeeb364b9a94972c05696
https://github.com/llvm/llvm-project/commit/6eab5cade71459bc187eeeb364b9a94972c05696
Author: eopXD <eop.chen at sifive.com>
Date: 2022-06-01 (Wed, 01 Jun 2022)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Log Message:
-----------
[LSR] Early exit for RateFormula when it is already losing. NFC
This patch does not effect any behavior of the current code.
The codebase implicitly implies that `Cost::RateFormula` is only called
when the `Cost` is not in losing status, or else there may be possible
to trigger the assertion of `Cost::isValid`.
The intention here is to prevent mis-use where future development
allow `Cost` that is already loser to call `Cost::RateFormula` - Early
exit when `Cost` is already losing.
Reviewed By: Meinersbur, #loopoptwg
Differential Revision: https://reviews.llvm.org/D125670
More information about the All-commits
mailing list