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

References

lib/Analysis/InstructionSimplify.cpp
  698   if (Constant *C = foldOrCommuteConstant(Instruction::Sub, Op0, Op1, Q))
  703   if (match(Op0, m_Undef()) || match(Op1, m_Undef()))
  704     return UndefValue::get(Op0->getType());
  708     return Op0;
  711   if (Op0 == Op1)
  712     return Constant::getNullValue(Op0->getType());
  715   if (match(Op0, m_Zero())) {
  718       return Constant::getNullValue(Op0->getType());
  725         return Constant::getNullValue(Op0->getType());
  735   if (MaxRecurse && match(Op0, m_Add(m_Value(X), m_Value(Y)))) { // (X + Y) - Z
  756   X = Op0;
  778   Z = Op0;
  790   if (MaxRecurse && match(Op0, m_Trunc(m_Value(X))) &&
  796         if (Value *W = SimplifyCastInst(Instruction::Trunc, V, Op0->getType(),
  802   if (match(Op0, m_PtrToInt(m_Value(X))) &&
  805       return ConstantExpr::getIntegerCast(Result, Op0->getType(), true);
  808   if (MaxRecurse && Op0->getType()->isIntOrIntVectorTy(1))
  809     if (Value *V = SimplifyXorInst(Op0, Op1, Q, MaxRecurse-1))