Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp169 Value *CommonValue = nullptr; in simplifyCommonValuePhi() local
174 } else if (!CommonValue) { in simplifyCommonValuePhi()
176 CommonValue = Incoming; in simplifyCommonValuePhi()
177 } else if (Incoming != CommonValue) { in simplifyCommonValuePhi()
183 if (!CommonValue || IncomingConstants.empty()) in simplifyCommonValuePhi()
188 if (auto *CommonInst = dyn_cast<Instruction>(CommonValue)) in simplifyCommonValuePhi()
198 if (C != LVI->getConstantOnEdge(CommonValue, IncomingBB, ToBB, P)) in simplifyCommonValuePhi()
205 if (!isGuaranteedNotToBePoison(CommonValue, nullptr, P, DT)) in simplifyCommonValuePhi()
210 P->replaceAllUsesWith(CommonValue); in simplifyCommonValuePhi()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInstructionSimplify.cpp549 if (!V || (CommonValue && V != CommonValue)) in threadBinOpOverPHI()
551 CommonValue = V; in threadBinOpOverPHI()
554 return CommonValue; in threadBinOpOverPHI()
594 if (!V || (CommonValue && V != CommonValue)) in threadCmpOverPHI()
596 CommonValue = V; in threadCmpOverPHI()
599 return CommonValue; in threadCmpOverPHI()
4829 if (CommonValue && Incoming != CommonValue) in simplifyPHINode()
4831 CommonValue = Incoming; in simplifyPHINode()
4836 if (!CommonValue) in simplifyPHINode()
4843 return valueDominatesPHI(CommonValue, PN, Q.DT) ? CommonValue : nullptr; in simplifyPHINode()
[all …]
H A DConstantFolding.cpp1163 Constant *CommonValue = nullptr; in ConstantFoldInstruction() local
1181 if (CommonValue && C != CommonValue) in ConstantFoldInstruction()
1183 CommonValue = C; in ConstantFoldInstruction()
1187 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp1084 Value *CommonValue = PN->getIncomingValue(0); in normalizeReturnBlock() local
1086 [&](Value *V) { return V == CommonValue; })) in normalizeReturnBlock()
1087 return CommonValue; in normalizeReturnBlock()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp3571 Value *CommonValue = findCommon(Map); in combineAddrModes() local
3572 if (CommonValue) in combineAddrModes()
3573 AddrModes[0].SetCombinedField(DifferentField, CommonValue, AddrModes); in combineAddrModes()
3574 return CommonValue != nullptr; in combineAddrModes()