llvm::isTriviallyScalarizable

Identify if the intrinsic is trivially scalarizable.

Synopsis

Declared in <llvm/Analysis/VectorUtils.h>

bool
isTriviallyScalarizable(Intrinsic::ID ID);

Description

This method returns true following the same predicates of isTriviallyVectorizable.

Note: There are intrinsics where implementing vectorization for the intrinsic is redundant, but we want to implement scalarization of the vector. To prevent the requirement that an intrinsic also implements vectorization we provide this separate function.

Return Value

True if the intrinsic is trivially scalarizable.

Parameters

NameDescription
IDIntrinsic identifier to classify.