Displaying 1 result from an estimated 1 matches for "leftmul".
Did you mean:
leftcol
2012 Apr 12
0
[LLVMdev] detection of constant diagonal matrix * vector
...=
llvm::dyn_cast<llvm::ConstantInt>(elements[i]))
values[i] = int(element->getZExtValue());
}
}
}
at the end of InstCombiner::visitFAdd:
// check for constant diagonal matrix * vector: a.xx * [2 0] + a.yy *
[0 3] --> a * [2 3]
BinaryOperator* leftMul = dyn_cast<BinaryOperator>(LHS);
BinaryOperator* rightMul = dyn_cast<BinaryOperator>(RHS);
if (leftMul != NULL && rightMul != NULL && leftMul->getOpcode() ==
Instruction::FMul && rightMul->getOpcode() == Instruction::FMul)
{
ShuffleVectorInst...