[PATCH] D111904: [RISCV] Lower fixed vector CTLZ_ZERO_UNDEF/CTTZ_ZERO_UNDEF by converting to FP and extracting the exponent.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 20 09:34:39 PDT 2021
craig.topper updated this revision to Diff 380999.
craig.topper added a comment.
Remove splitting if FP type isn't legal. Some cases it generated worse code. Need to re-evaluate.
I had to make an additional change to TargetLowering.cpp to prevent an infinite loop.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111904/new/
https://reviews.llvm.org/D111904
Files:
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-ctlz.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-cttz.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111904.380999.patch
Type: text/x-patch
Size: 240227 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211020/d7e832c3/attachment-0001.bin>
More information about the llvm-commits
mailing list