aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/LockFileManager.cpp
diff options
context:
space:
mode:
authorShih-Po Hung <shihpo.hung@sifive.com>2024-03-02 12:33:55 +0800
committerGitHub <noreply@github.com>2024-03-02 12:33:55 +0800
commitfb67dce1cb87e279593c27bd4122fe63bad75f04 (patch)
treecdb44160d639105ab354bd24c44d06592b316766 /llvm/lib/Support/LockFileManager.cpp
parente4b15fc854b6eaebe63ba3acfcd39bf6dd7748b5 (diff)
downloadllvm-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