Home
last modified time | relevance | path

Searched refs:CommonValue (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp160 Value *CommonValue = nullptr; in simplifyCommonValuePhi() local
165 } else if (!CommonValue) { in simplifyCommonValuePhi()
167 CommonValue = Incoming; in simplifyCommonValuePhi()
168 } else if (Incoming != CommonValue) { in simplifyCommonValuePhi()
174 if (!CommonValue || IncomingConstants.empty()) in simplifyCommonValuePhi()
179 if (auto *CommonInst = dyn_cast<Instruction>(CommonValue)) in simplifyCommonValuePhi()
189 if (C != LVI->getConstantOnEdge(CommonValue, IncomingBB, ToBB, P)) in simplifyCommonValuePhi()
196 if (!isGuaranteedNotToBePoison(CommonValue, nullptr, P, DT)) in simplifyCommonValuePhi()
201 P->replaceAllUsesWith(CommonValue); in simplifyCommonValuePhi()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp541 Value *CommonValue = nullptr; in threadBinOpOverPHI() local
554 if (!V || (CommonValue && V != CommonValue)) in threadBinOpOverPHI()
556 CommonValue = V; in threadBinOpOverPHI()
559 return CommonValue; in threadBinOpOverPHI()
585 Value *CommonValue = nullptr; in threadCmpOverPHI() local
599 if (!V || (CommonValue && V != CommonValue)) in threadCmpOverPHI()
601 CommonValue = V; in threadCmpOverPHI()
604 return CommonValue; in threadCmpOverPHI()
5284 Value *CommonValue = nullptr; in simplifyPHINode() local
5300 if (CommonValue && Incoming != CommonValue) in simplifyPHINode()
[all …]
H A DConstantFolding.cpp1116 Constant *CommonValue = nullptr; in ConstantFoldInstruction() local
1134 if (CommonValue && C != CommonValue) in ConstantFoldInstruction()
1136 CommonValue = C; in ConstantFoldInstruction()
1140 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp3801 Value *CommonValue = nullptr; member in __anon1d600f580d11::AddressingModeCombiner
3893 CommonValue = findCommon(Map); in combineAddrModes()
3894 if (CommonValue) in combineAddrModes()
3895 AddrModes[0].SetCombinedField(DifferentField, CommonValue, AddrModes); in combineAddrModes()
3896 return CommonValue != nullptr; in combineAddrModes()
3903 if (CommonValue && CommonValue->getNumUses() == 0) in eraseCommonValueIfDead()
3904 if (Instruction *CommonInst = dyn_cast<Instruction>(CommonValue)) in eraseCommonValueIfDead()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp6207 SDValue CommonValue, Operand1, Operand2; in foldAndOrOfSETCC() local
6211 CommonValue = LHS0; in foldAndOrOfSETCC()
6216 CommonValue = LHS1; in foldAndOrOfSETCC()
6224 CommonValue = LHS0; in foldAndOrOfSETCC()
6229 CommonValue = LHS1; in foldAndOrOfSETCC()
6238 if (CC == ISD::SETLT && isNullOrNullSplat(CommonValue)) in foldAndOrOfSETCC()
6240 else if (CC == ISD::SETGT && isAllOnesOrAllOnesSplat(CommonValue)) in foldAndOrOfSETCC()
6262 return DAG.getSetCC(DL, VT, MinMaxValue, CommonValue, CC); in foldAndOrOfSETCC()