D111904 made RISC-V customized lower ISD::CTLZ_ZERO_UNDEF by converting to float
and using the float result. The expected value of CTLZ with zero input is the
element size of input type. Since the result of above method with zero input
must be greater than the element size, for ISD::CTLZ, we could use the minimum
of element size and the result of CTLZ_ZERO_UNDER with same input.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
LGTM with those comments fixed.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp | ||
---|---|---|
3606 | equaled -> equal "which greater" -> "which is greater" |
equaled -> equal
"which greater" -> "which is greater"