diff options
author | Craig Topper <craig.topper@sifive.com> | 2025-03-05 09:10:45 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-05 09:10:45 -0800 |
commit | 39c454af01fd272166e5379ffc4d4d6b32d7bbee (patch) | |
tree | d0f6c6dc1dafbff1c22b0a8bc9e936e472493a5a /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | b53e75711c284d08b7377385c6f2a037842c0d5b (diff) | |
download | llvm-39c454af01fd272166e5379ffc4d4d6b32d7bbee.zip llvm-39c454af01fd272166e5379ffc4d4d6b32d7bbee.tar.gz llvm-39c454af01fd272166e5379ffc4d4d6b32d7bbee.tar.bz2 |
[TTI] getScalingFactorCost should return InstructionCost::getInvalid() instead of -1. (#129802)
Historically this function return an int with negative values meaning
invalid. It was migrated to InstructionCost in 43ace8b5ce07a, but the
code was not updated to return invalid cost instead of -1. In that
commit, the caller in LSR was updated to assert that the cost is valid
instead of positive. We should return invalid instead of a negative
value so LSR will assert if the cost isn't valid.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions