[all-commits] [llvm/llvm-project] 1ce3af: [ValueTracking] Teach computeKnownBits about riscv...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Jan 27 16:40:24 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ce3afd97784b7e638c6a562451dc008a6bc3907
      https://github.com/llvm/llvm-project/commit/1ce3afd97784b7e638c6a562451dc008a6bc3907
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-01-27 (Fri, 27 Jan 2023)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/Transforms/InstCombine/RISCV/riscv-vsetvli-knownbits.ll

  Log Message:
  -----------
  [ValueTracking] Teach computeKnownBits about riscv.vsetvli.opt and riscv.vsetvlimax.opt intrinsics.

These are like the intrinsic without opt, but don't have side effects.

Add missing test cases for riscv.vsetvlimax.


  Commit: 4ea6d42b632d166e6ee2f38f6758ed71515a7f7a
      https://github.com/llvm/llvm-project/commit/4ea6d42b632d166e6ee2f38f6758ed71515a7f7a
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-01-27 (Fri, 27 Jan 2023)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/rvv/vsetvl-ext.ll
    M llvm/test/Transforms/InstCombine/RISCV/riscv-vsetvli-knownbits.ll

  Log Message:
  -----------
  [RISCV] Teach computeKnownBits that vsetvli returns <= 65536.

Resolves a FIXME. We could do even better taking into account SEW/LMUL.


Compare: https://github.com/llvm/llvm-project/compare/c5fa6b1610a3...4ea6d42b632d


More information about the All-commits mailing list