Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp144 Value *CommonValue = nullptr; in simplifyCommonValuePhi() local
149 } else if (!CommonValue) { in simplifyCommonValuePhi()
151 CommonValue = Incoming; in simplifyCommonValuePhi()
152 } else if (Incoming != CommonValue) { in simplifyCommonValuePhi()
158 if (!CommonValue || IncomingConstants.empty()) in simplifyCommonValuePhi()
163 if (auto *CommonInst = dyn_cast<Instruction>(CommonValue)) in simplifyCommonValuePhi()
173 if (C != LVI->getConstantOnEdge(CommonValue, IncomingBB, ToBB, P)) in simplifyCommonValuePhi()
179 P->replaceAllUsesWith(CommonValue); in simplifyCommonValuePhi()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DInstructionSimplify.cpp510 if (!V || (CommonValue && V != CommonValue)) in ThreadBinOpOverPHI()
512 CommonValue = V; in ThreadBinOpOverPHI()
515 return CommonValue; in ThreadBinOpOverPHI()
548 if (!V || (CommonValue && V != CommonValue)) in ThreadCmpOverPHI()
550 CommonValue = V; in ThreadCmpOverPHI()
553 return CommonValue; in ThreadCmpOverPHI()
4307 if (CommonValue && Incoming != CommonValue) in SimplifyPHINode()
4309 CommonValue = Incoming; in SimplifyPHINode()
4314 if (!CommonValue) in SimplifyPHINode()
4321 return valueDominatesPHI(CommonValue, PN, Q.DT) ? CommonValue : nullptr; in SimplifyPHINode()
[all …]
H A DConstantFolding.cpp1099 Constant *CommonValue = nullptr; in ConstantFoldInstruction() local
1118 if (CommonValue && C != CommonValue) in ConstantFoldInstruction()
1120 CommonValue = C; in ConstantFoldInstruction()
1124 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp1040 Value *CommonValue = PN->getIncomingValue(0); in NormalizeReturnBlock() local
1042 [&](Value *V) { return V == CommonValue; })) in NormalizeReturnBlock()
1043 return CommonValue; in NormalizeReturnBlock()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp3026 Value *CommonValue = findCommon(Map); in combineAddrModes() local
3027 if (CommonValue) in combineAddrModes()
3028 AddrModes[0].SetCombinedField(DifferentField, CommonValue, AddrModes); in combineAddrModes()
3029 return CommonValue != nullptr; in combineAddrModes()