diff options
| author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2023-09-17 02:38:26 +0800 |
|---|---|---|
| committer | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2023-09-17 02:56:09 +0800 |
| commit | e042ff7eefff6037ffe8350db7c52080a189cce8 (patch) | |
| tree | 9dc3fdc57bf2b963de7c02aaf769996433c78b35 /mlir/lib/Bytecode/Reader/BytecodeReader.cpp | |
| parent | 695138ca8405779c2b7756cc31d887aa54f56bb8 (diff) | |
| download | llvm-e042ff7eefff6037ffe8350db7c52080a189cce8.zip llvm-e042ff7eefff6037ffe8350db7c52080a189cce8.tar.gz llvm-e042ff7eefff6037ffe8350db7c52080a189cce8.tar.bz2 | |
[SDAG][RISCV] Avoid expanding is-power-of-2 pattern on riscv32/64 with zbb
This patch adjusts the legality check for riscv to use `cpop/cpopw` since `isOperationLegal(ISD::CTPOP, MVT::i32)` returns false on rv64gc_zbb.
Clang vs gcc: https://godbolt.org/z/rc3s4hjPh
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D156390
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
