LLVM 22.0.0git
VPlanUtils.cpp File Reference

Go to the source code of this file.

Functions

static bool preservesUniformity (unsigned Opcode)
 Returns true if Opcode preserves uniformity, i.e., if all operands are uniform, the result will also be uniform.

Function Documentation

◆ preservesUniformity()

bool preservesUniformity ( unsigned Opcode)
static

Returns true if Opcode preserves uniformity, i.e., if all operands are uniform, the result will also be uniform.

Definition at line 155 of file VPlanUtils.cpp.

References llvm::VPInstruction::Broadcast, llvm::Instruction::isBinaryOp(), llvm::Instruction::isCast(), llvm::VPInstruction::Not, and llvm::VPInstruction::PtrAdd.

Referenced by llvm::vputils::isSingleScalar(), and llvm::vputils::isUniformAcrossVFsAndUFs().