Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp143 Value *CommonValue = nullptr; in simplifyCommonValuePhi() local
148 } else if (!CommonValue) { in simplifyCommonValuePhi()
150 CommonValue = Incoming; in simplifyCommonValuePhi()
151 } else if (Incoming != CommonValue) { in simplifyCommonValuePhi()
157 if (!CommonValue || IncomingConstants.empty()) in simplifyCommonValuePhi()
162 if (auto *CommonInst = dyn_cast<Instruction>(CommonValue)) in simplifyCommonValuePhi()
172 if (C != LVI->getConstantOnEdge(CommonValue, IncomingBB, ToBB, P)) in simplifyCommonValuePhi()
178 P->replaceAllUsesWith(CommonValue); in simplifyCommonValuePhi()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp472 Value *CommonValue = nullptr; in ThreadBinOpOverPHI() local
481 if (!V || (CommonValue && V != CommonValue)) in ThreadBinOpOverPHI()
483 CommonValue = V; in ThreadBinOpOverPHI()
486 return CommonValue; in ThreadBinOpOverPHI()
512 Value *CommonValue = nullptr; in ThreadCmpOverPHI() local
519 if (!V || (CommonValue && V != CommonValue)) in ThreadCmpOverPHI()
521 CommonValue = V; in ThreadCmpOverPHI()
524 return CommonValue; in ThreadCmpOverPHI()
3713 Value *CommonValue = nullptr; in SimplifyPHINode() local
3723 if (CommonValue && Incoming != CommonValue) in SimplifyPHINode()
[all …]
DConstantFolding.cpp973 Constant *CommonValue = nullptr; in ConstantFoldInstruction() local
991 if (CommonValue && C != CommonValue) in ConstantFoldInstruction()
993 CommonValue = C; in ConstantFoldInstruction()
998 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DInstructionSimplify.cpp501 Value *CommonValue = nullptr; in ThreadBinOpOverPHI() local
510 if (!V || (CommonValue && V != CommonValue)) in ThreadBinOpOverPHI()
512 CommonValue = V; in ThreadBinOpOverPHI()
515 return CommonValue; in ThreadBinOpOverPHI()
541 Value *CommonValue = nullptr; in ThreadCmpOverPHI() local
548 if (!V || (CommonValue && V != CommonValue)) in ThreadCmpOverPHI()
550 CommonValue = V; in ThreadCmpOverPHI()
553 return CommonValue; in ThreadCmpOverPHI()
4109 Value *CommonValue = nullptr; in SimplifyPHINode() local
4119 if (CommonValue && Incoming != CommonValue) in SimplifyPHINode()
[all …]
DConstantFolding.cpp1095 Constant *CommonValue = nullptr; in ConstantFoldInstruction() local
1114 if (CommonValue && C != CommonValue) in ConstantFoldInstruction()
1116 CommonValue = C; in ConstantFoldInstruction()
1120 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DPartialInlining.cpp1045 Value *CommonValue = PN->getIncomingValue(0); in NormalizeReturnBlock() local
1047 [&](Value *V) { return V == CommonValue; })) in NormalizeReturnBlock()
1048 return CommonValue; in NormalizeReturnBlock()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp2843 Value *CommonValue = findCommon(Map); in combineAddrModes() local
2844 if (CommonValue) in combineAddrModes()
2845 AddrModes[0].SetCombinedField(DifferentField, CommonValue, AddrModes); in combineAddrModes()
2846 return CommonValue != nullptr; in combineAddrModes()