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

References

lib/Transforms/InstCombine/InstCombineSelect.cpp
 1385   if (Value *V = foldSelectValueEquivalence(SI, *ICI, SQ))
 1386     return replaceInstUsesWith(SI, V);
 1388   if (Instruction *NewSel = canonicalizeMinMaxWithConstant(SI, *ICI, Builder))
 1391   if (Instruction *NewAbs = canonicalizeAbsNabs(SI, *ICI, Builder))
 1394   if (Instruction *NewAbs = canonicalizeClampLike(SI, *ICI, Builder))
 1398           tryToReuseConstantFromSelectInComparison(SI, *ICI, Builder))
 1401   bool Changed = adjustMinMax(SI, *ICI);
 1403   if (Value *V = foldSelectICmpAnd(SI, ICI, Builder))
 1404     return replaceInstUsesWith(SI, V);
 1407   Value *TrueVal = SI.getTrueValue();
 1408   Value *FalseVal = SI.getFalseValue();
 1415       SI.setOperand(1, CmpRHS);
 1419       SI.setOperand(2, CmpRHS);
 1470         return replaceInstUsesWith(SI, V);
 1475           foldSelectICmpAndAnd(SI.getType(), ICI, TrueVal, FalseVal, Builder))
 1482     return replaceInstUsesWith(SI, V);
 1485     return replaceInstUsesWith(SI, V);
 1488     return replaceInstUsesWith(SI, V);
 1491     return replaceInstUsesWith(SI, V);
 1494     return replaceInstUsesWith(SI, V);
 1496   return Changed ? &SI : nullptr;