[all-commits] [llvm/llvm-project] fb67dc: [RISCV] Fix crash when unrolling loop containing v...
Shih-Po Hung via All-commits
all-commits at lists.llvm.org
Fri Mar 1 20:34:07 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fb67dce1cb87e279593c27bd4122fe63bad75f04
https://github.com/llvm/llvm-project/commit/fb67dce1cb87e279593c27bd4122fe63bad75f04
Author: Shih-Po Hung <shihpo.hung at sifive.com>
Date: 2024-03-02 (Sat, 02 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,
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