llvm::TargetLoweringBase::isMaskAndCmp0FoldingBeneficial

Return if the target supports combining a chain like:

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

virtual
bool
isMaskAndCmp0FoldingBeneficial(Instruction const& AndI) const;

Description


%andResult = and %val1, #mask
%icmpResult = icmp %andResult, 0

into a single machine instruction of a form like:


cc = test %register, #mask

Return Value

If the target supports combining a chain like:.

Parameters

NameDescription
AndIAnd instruction being folded.