[all-commits] [llvm/llvm-project] 7de383: [VP] Fix VPintrinsic::getStaticVectorLength for vp...

Simon Moll via All-commits all-commits at lists.llvm.org
Tue Mar 22 03:42:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7de383c892135ac7ecb67460c677aed72efdb76a
      https://github.com/llvm/llvm-project/commit/7de383c892135ac7ecb67460c677aed72efdb76a
  Author: Simon Moll <simon.moll at emea.nec.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M llvm/include/llvm/IR/VPIntrinsics.def
    M llvm/lib/IR/IntrinsicInst.cpp

  Log Message:
  -----------
  [VP] Fix VPintrinsic::getStaticVectorLength for vp.merge|select

VPIntrinsic::getStaticVectorLength infers the operational vector length
of a VPIntrinsic instance from a type that is used with the intrinsic.
The function used the mask operand before. Yet, vp.merge|select do not
have a mask operand (in the predicating sense that the other VP
intrinsics are using them - it is a selection mask for them). Fallback
to the return type to fix this.

Reviewed By: kaz7

Differential Revision: https://reviews.llvm.org/D121913




More information about the All-commits mailing list