[all-commits] [llvm/llvm-project] eb9bc0: [RISCV] Fix crash when unrolling loop containing v...
Shih-Po Hung via All-commits
all-commits at lists.llvm.org
Tue Mar 12 17:29:19 PDT 2024
Branch: refs/heads/release/18.x
Home: https://github.com/llvm/llvm-project
Commit: eb9bc02b06cb07ffdd4c5ee55d6b6b591d78656f
https://github.com/llvm/llvm-project/commit/eb9bc02b06cb07ffdd4c5ee55d6b6b591d78656f
Author: Shih-Po Hung <shihpo.hung at sifive.com>
Date: 2024-03-12 (Tue, 12 Mar 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
A llvm/test/Analysis/CostModel/RISCV/vector-cost-without-v.ll
Log Message:
-----------
[RISCV] Fix crash when unrolling loop containing vector instructions (#83384)
When MVT is not a vector type, TCK_CodeSize should return an invalid
cost. This patch adds a check in the beginning to make sure all cost
kinds return invalid costs consistently.
Before this patch, TCK_CodeSize returns a valid cost on scalar MVT but
other cost kinds doesn't.
This fixes the issue #83294 where a loop contains vector instructions
and MVT is scalar after type legalization when the vector extension is
not enabled,
(cherry picked from commit fb67dce1cb87e279593c27bd4122fe63bad75f04)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list