reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/Scalar/NewGVN.cpp
 1126   bool AllConstant = setBasicExpressionInfo(I, E);
 1134     if (shouldSwapOperands(E->getOperand(0), E->getOperand(1)))
 1134     if (shouldSwapOperands(E->getOperand(0), E->getOperand(1)))
 1135       E->swapOperands(0, 1);
 1142     if (shouldSwapOperands(E->getOperand(0), E->getOperand(1))) {
 1142     if (shouldSwapOperands(E->getOperand(0), E->getOperand(1))) {
 1143       E->swapOperands(0, 1);
 1146     E->setOpcode((CI->getOpcode() << 8) | Predicate);
 1150     assert((E->getOperand(0)->getType() == I->getOperand(0)->getType() &&
 1151             E->getOperand(1)->getType() == I->getOperand(1)->getType()));
 1153         SimplifyCmpInst(Predicate, E->getOperand(0), E->getOperand(1), SQ);
 1153         SimplifyCmpInst(Predicate, E->getOperand(0), E->getOperand(1), SQ);
 1154     if (const Expression *SimplifiedE = checkSimplificationResults(E, I, V))
 1157     if (isa<Constant>(E->getOperand(0)) ||
 1158         E->getOperand(1) == E->getOperand(2)) {
 1158         E->getOperand(1) == E->getOperand(2)) {
 1159       assert(E->getOperand(1)->getType() == I->getOperand(1)->getType() &&
 1160              E->getOperand(2)->getType() == I->getOperand(2)->getType());
 1161       Value *V = SimplifySelectInst(E->getOperand(0), E->getOperand(1),
 1161       Value *V = SimplifySelectInst(E->getOperand(0), E->getOperand(1),
 1162                                     E->getOperand(2), SQ);
 1163       if (const Expression *SimplifiedE = checkSimplificationResults(E, I, V))
 1168         SimplifyBinOp(E->getOpcode(), E->getOperand(0), E->getOperand(1), SQ);
 1168         SimplifyBinOp(E->getOpcode(), E->getOperand(0), E->getOperand(1), SQ);
 1168         SimplifyBinOp(E->getOpcode(), E->getOperand(0), E->getOperand(1), SQ);
 1169     if (const Expression *SimplifiedE = checkSimplificationResults(E, I, V))
 1173         SimplifyCastInst(CI->getOpcode(), E->getOperand(0), CI->getType(), SQ);
 1174     if (const Expression *SimplifiedE = checkSimplificationResults(E, I, V))
 1178         E->getType(), ArrayRef<Value *>(E->op_begin(), E->op_end()), SQ);
 1178         E->getType(), ArrayRef<Value *>(E->op_begin(), E->op_end()), SQ);
 1178         E->getType(), ArrayRef<Value *>(E->op_begin(), E->op_end()), SQ);
 1179     if (const Expression *SimplifiedE = checkSimplificationResults(E, I, V))
 1190     for (Value *Arg : E->operands())
 1194       if (const Expression *SimplifiedE = checkSimplificationResults(E, I, V))
 1197   return E;