[all-commits] [llvm/llvm-project] 8a2255: [IR] Change getParamIndexForOptionalMask to assume...

David Sherwood via All-commits all-commits at lists.llvm.org
Thu Feb 12 06:37:18 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a2255fc420621e7a4bfa4ebce50a58c0fb99cf5
      https://github.com/llvm/llvm-project/commit/8a2255fc420621e7a4bfa4ebce50a58c0fb99cf5
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M llvm/include/llvm/IR/VFABIDemangler.h

  Log Message:
  -----------
  [IR] Change getParamIndexForOptionalMask to assume masked parameter is last (#180558)

At the moment all code in LLVM seems to explicitly assume that the
masked parameter passed to vector math functions always lives at the end
of the parameter list. See VFShape::get as an example. It seems odd then
for getParamIndexForOptionalMask to walk the parameter list looking for
the mask. Indeed, the loop vectoriser would break if the mask was passed
in any other argument position. For example, if the masked parameter
position was 1 for a vector version of powf it would end up over-writing
the exponent.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list