Lines Matching +full:everything +full:- +full:else

1 //===- Dominators.cpp - Dominator Calculation -----------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
18 #include "llvm/Config/llvm-config.h"
42 VerifyDomInfoX("verify-dom-info", cl::location(VerifyDomInfo), cl::Hidden,
47 #else
63 //===----------------------------------------------------------------------===//
65 //===----------------------------------------------------------------------===//
71 //===----------------------------------------------------------------------===//
127 return dominates(BB, PN->getIncomingBlock(U));
128 else
129 return properlyDominates(BB, UserInst->getParent());
132 // dominates - Return true if Def dominates a use in User. This performs
141 return true; // Arguments and constants dominate everything.
144 const BasicBlock *UseBB = User->getParent();
145 const BasicBlock *DefBB = Def->getParent();
169 return Def->comesBefore(User);
173 // note that dominates(Def, Def->getParent()) is false.
176 const BasicBlock *DefBB = Def->getParent();
192 BasicBlock *NormalDest = II->getNormalDest();
211 if (End->getSinglePredecessor())
254 if (PN && PN->getParent() == BBE.getEnd() &&
255 PN->getIncomingBlock(U) == BBE.getStart())
258 // Otherwise use the edge-dominates-block query, which
262 UseBB = PN->getIncomingBlock(U);
263 else
264 UseBB = UserInst->getParent();
273 return true; // Arguments and constants dominate everything.
277 const BasicBlock *DefBB = Def->getParent();
284 UseBB = PN->getIncomingBlock(U);
285 else
286 UseBB = UserInst->getParent();
302 BasicBlock *NormalDest = II->getNormalDest();
314 // everything in the block.
318 return Def->comesBefore(UserInst);
330 return isReachableFromEntry(PN->getIncomingBlock(U));
332 // Everything else uses their operands in their own block.
333 return isReachableFromEntry(I->getParent());
346 BasicBlock *BB1 = I1->getParent();
347 BasicBlock *BB2 = I2->getParent();
349 return I1->comesBefore(I2) ? I1 : I2;
359 return DomBB->getTerminator();
362 //===----------------------------------------------------------------------===//
364 //===----------------------------------------------------------------------===//
369 //===----------------------------------------------------------------------===//
398 //===----------------------------------------------------------------------===//
400 //===----------------------------------------------------------------------===//
405 //===----------------------------------------------------------------------===//
424 else if (ExpensiveChecksEnabled)