[all-commits] [llvm/llvm-project] d9dd5f: [Clang][RISCV][RVV Intrinsic] Fix codegen redundan...

袁銓嶽 via All-commits all-commits at lists.llvm.org
Thu Jan 25 23:23:47 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9dd5f049f16a866dcfa74d0207dd376543c1ec4
      https://github.com/llvm/llvm-project/commit/d9dd5f049f16a866dcfa74d0207dd376543c1ec4
  Author: 袁銓嶽 <84860242+circYuan at users.noreply.github.com>
  Date:   2024-01-25 (Thu, 25 Jan 2024)

  Changed paths:
    M clang/include/clang/Basic/riscv_vector.td

  Log Message:
  -----------
  [Clang][RISCV][RVV Intrinsic] Fix codegen redundant intrinsic names (#77889)

This patch avoids adding redundant vcreate_v intrinsics to the RISCV
IntrinsicList.
Since vcreate_v uses LFixedLog2LMUL, I believe we can simply set
Log2LMUL to the smallest value (-3) to prevent the creation of redundant
vcreate_v instances with the same intrinsic name and prototype in the
IntrinsicList when clang creates it.




More information about the All-commits mailing list