[PATCH] D98567: [RISCV] Look through copies when trying to find an implicit def in addVSetVL.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 15 12:58:18 PDT 2021


craig.topper updated this revision to Diff 330770.
craig.topper added a comment.

Add mir test containing the pattern I'm seeing. Run it through finalize-isel. Without the patch we use 27 instead of 91 for the vsetvli immediate.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98567/new/

https://reviews.llvm.org/D98567

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/test/CodeGen/RISCV/rvv/masked-load-fp.ll
  llvm/test/CodeGen/RISCV/rvv/masked-load-int.ll
  llvm/test/CodeGen/RISCV/rvv/tail-agnostic-impdef-copy.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98567.330770.patch
Type: text/x-patch
Size: 8344 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210315/34226093/attachment.bin>


More information about the llvm-commits mailing list