Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DCorrelatedValuePropagation.cpp171 Value *CommonValue = nullptr; in simplifyCommonValuePhi() local
176 } else if (!CommonValue) { in simplifyCommonValuePhi()
178 CommonValue = Incoming; in simplifyCommonValuePhi()
179 } else if (Incoming != CommonValue) { in simplifyCommonValuePhi()
185 if (!CommonValue || IncomingConstants.empty()) in simplifyCommonValuePhi()
190 if (auto *CommonInst = dyn_cast<Instruction>(CommonValue)) in simplifyCommonValuePhi()
200 if (C != LVI->getConstantOnEdge(CommonValue, IncomingBB, ToBB, P)) in simplifyCommonValuePhi()
207 if (!isGuaranteedNotToBePoison(CommonValue, nullptr, P, DT)) in simplifyCommonValuePhi()
212 P->replaceAllUsesWith(CommonValue); in simplifyCommonValuePhi()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DInstructionSimplify.cpp541 Value *CommonValue = nullptr; in threadBinOpOverPHI() local
550 if (!V || (CommonValue && V != CommonValue)) in threadBinOpOverPHI()
552 CommonValue = V; in threadBinOpOverPHI()
555 return CommonValue; in threadBinOpOverPHI()
581 Value *CommonValue = nullptr; in threadCmpOverPHI() local
595 if (!V || (CommonValue && V != CommonValue)) in threadCmpOverPHI()
597 CommonValue = V; in threadCmpOverPHI()
600 return CommonValue; in threadCmpOverPHI()
5029 Value *CommonValue = nullptr; in simplifyPHINode() local
5040 if (CommonValue && Incoming != CommonValue) in simplifyPHINode()
[all …]
H A DConstantFolding.cpp1162 Constant *CommonValue = nullptr; in ConstantFoldInstruction() local
1180 if (CommonValue && C != CommonValue) in ConstantFoldInstruction()
1182 CommonValue = C; in ConstantFoldInstruction()
1186 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp3665 Value *CommonValue = findCommon(Map); in combineAddrModes() local
3666 if (CommonValue) in combineAddrModes()
3667 AddrModes[0].SetCombinedField(DifferentField, CommonValue, AddrModes); in combineAddrModes()
3668 return CommonValue != nullptr; in combineAddrModes()