aboutsummaryrefslogtreecommitdiff
path: root/clang/utils/TableGen/RISCVVEmitter.cpp
diff options
context:
space:
mode:
authorMitch <mitchbriles@gmail.com>2025-09-02 19:13:54 -0600
committerGitHub <noreply@github.com>2025-09-03 09:13:54 +0800
commitcb89ffdd34aa6b7e6d1417ef68e1d837c8e651a1 (patch)
tree63ebd06b304fe1258acb4d9e25b2eaa0781893cd /clang/utils/TableGen/RISCVVEmitter.cpp
parentc33ccfa52b2db90bae72ac11ee50639231e93310 (diff)
downloadllvm-cb89ffdd34aa6b7e6d1417ef68e1d837c8e651a1.zip
llvm-cb89ffdd34aa6b7e6d1417ef68e1d837c8e651a1.tar.gz
llvm-cb89ffdd34aa6b7e6d1417ef68e1d837c8e651a1.tar.bz2
[RISCV] Fix incorrect folding of select on ctlz/cttz (#155231)
This patch tries to fix [#155014](https://github.com/llvm/llvm-project/issues/155014). The pattern of `ctlz`/`cttz` -> `icmp` -> `select` can occur when accounting for targets which don't support `cttz(0)` or `ctlz(0)`. We can replace this with a mask, but **only on power-of-2 bitwidths**.
Diffstat (limited to 'clang/utils/TableGen/RISCVVEmitter.cpp')
0 files changed, 0 insertions, 0 deletions