Searched refs:CommonValue (Results 1 – 5 of 5) sorted by relevance
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | CorrelatedValuePropagation.cpp | 164 Value *CommonValue = nullptr; in simplifyCommonValuePhi() local 169 } else if (!CommonValue) { in simplifyCommonValuePhi() 171 CommonValue = Incoming; in simplifyCommonValuePhi() 172 } else if (Incoming != CommonValue) { in simplifyCommonValuePhi() 178 if (!CommonValue || IncomingConstants.empty()) in simplifyCommonValuePhi() 183 if (auto *CommonInst = dyn_cast<Instruction>(CommonValue)) in simplifyCommonValuePhi() 193 if (C != LVI->getConstantOnEdge(CommonValue, IncomingBB, ToBB, P)) in simplifyCommonValuePhi() 200 if (!isGuaranteedNotToBePoison(CommonValue, nullptr, P, DT)) in simplifyCommonValuePhi() 205 P->replaceAllUsesWith(CommonValue); in simplifyCommonValuePhi()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 550 if (!V || (CommonValue && V != CommonValue)) in ThreadBinOpOverPHI() 552 CommonValue = V; in ThreadBinOpOverPHI() 555 return CommonValue; in ThreadBinOpOverPHI() 594 if (!V || (CommonValue && V != CommonValue)) in ThreadCmpOverPHI() 596 CommonValue = V; in ThreadCmpOverPHI() 599 return CommonValue; in ThreadCmpOverPHI() 4606 if (CommonValue && Incoming != CommonValue) in SimplifyPHINode() 4608 CommonValue = Incoming; in SimplifyPHINode() 4613 if (!CommonValue) in SimplifyPHINode() 4620 return valueDominatesPHI(CommonValue, PN, Q.DT) ? CommonValue : nullptr; in SimplifyPHINode() [all …]
|
| H A D | ConstantFolding.cpp | 1193 Constant *CommonValue = nullptr; in ConstantFoldInstruction() local 1211 if (CommonValue && C != CommonValue) in ConstantFoldInstruction() 1213 CommonValue = C; in ConstantFoldInstruction() 1217 return CommonValue ? CommonValue : UndefValue::get(PN->getType()); in ConstantFoldInstruction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | PartialInlining.cpp | 1087 Value *CommonValue = PN->getIncomingValue(0); in normalizeReturnBlock() local 1089 [&](Value *V) { return V == CommonValue; })) in normalizeReturnBlock() 1090 return CommonValue; in normalizeReturnBlock()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 3552 Value *CommonValue = findCommon(Map); in combineAddrModes() local 3553 if (CommonValue) in combineAddrModes() 3554 AddrModes[0].SetCombinedField(DifferentField, CommonValue, AddrModes); in combineAddrModes() 3555 return CommonValue != nullptr; in combineAddrModes()
|