diff options
| author | Yunzezhu94 <93851382+Yunzezhu94@users.noreply.github.com> | 2024-07-05 10:55:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 10:55:36 +0800 |
| commit | ffc459de7540eaf9bdbcb7b7cc2376fd7e9e7f11 (patch) | |
| tree | f8f58d7e39a054cba39e3463d82763d90042485a /llvm/tools/llvm-cov/CodeCoverage.cpp | |
| parent | 33112cbf59d838d25a4bf2a8c539d1aceda191c7 (diff) | |
| download | llvm-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
