aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/CodeCoverage.cpp
diff options
context:
space:
mode:
authorYunzezhu94 <93851382+Yunzezhu94@users.noreply.github.com>2024-07-05 10:55:36 +0800
committerGitHub <noreply@github.com>2024-07-05 10:55:36 +0800
commitffc459de7540eaf9bdbcb7b7cc2376fd7e9e7f11 (patch)
treef8f58d7e39a054cba39e3463d82763d90042485a /llvm/tools/llvm-cov/CodeCoverage.cpp
parent33112cbf59d838d25a4bf2a8c539d1aceda191c7 (diff)
downloadllvm-ffc459de7540eaf9bdbcb7b7cc2376fd7e9e7f11.zip
llvm-ffc459de7540eaf9bdbcb7b7cc2376fd7e9e7f11.tar.gz
llvm-ffc459de7540eaf9bdbcb7b7cc2376fd7e9e7f11.tar.bz2
[RISCV] Add a check in lowerSELECT after foldBinOpIntoSelectIfProfitable (#97391)
In certain case foldBinOpIntoSelectIfProfitable may return a constant node, the node will be lowered in lowerSELECT and lead to crash. This patch fix the bug by adding an extra check before lowerSELECT that do lowerSELECT as before when foldBinOpIntoSelectIfProfitable returns a select node, and return the node directly when foldBinOpIntoSelectIfProfitable returns a constant node. Fixes https://github.com/llvm/llvm-project/issues/97390
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
0 files changed, 0 insertions, 0 deletions