diff options
author | Shih-Po Hung <shihpo.hung@sifive.com> | 2024-03-02 12:33:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-02 12:33:55 +0800 |
commit | fb67dce1cb87e279593c27bd4122fe63bad75f04 (patch) | |
tree | cdb44160d639105ab354bd24c44d06592b316766 /llvm/lib/Support/LockFileManager.cpp | |
parent | e4b15fc854b6eaebe63ba3acfcd39bf6dd7748b5 (diff) | |
download | llvm-fb67dce1cb87e279593c27bd4122fe63bad75f04.zip llvm-fb67dce1cb87e279593c27bd4122fe63bad75f04.tar.gz llvm-fb67dce1cb87e279593c27bd4122fe63bad75f04.tar.bz2 |
[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,
Diffstat (limited to 'llvm/lib/Support/LockFileManager.cpp')
0 files changed, 0 insertions, 0 deletions