Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 1 | //===- MustExecute.cpp - Printer for isGuaranteedToExecute ----------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Philip Reames | e4b728e | 2018-03-29 19:22:12 +0000 | [diff] [blame] | 10 | #include "llvm/Analysis/MustExecute.h" |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 11 | #include "llvm/Analysis/InstructionSimplify.h" |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 12 | #include "llvm/Analysis/LoopInfo.h" |
| 13 | #include "llvm/Analysis/Passes.h" |
| 14 | #include "llvm/Analysis/ValueTracking.h" |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 15 | #include "llvm/IR/AssemblyAnnotationWriter.h" |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 16 | #include "llvm/IR/DataLayout.h" |
| 17 | #include "llvm/IR/InstIterator.h" |
| 18 | #include "llvm/IR/LLVMContext.h" |
| 19 | #include "llvm/IR/Module.h" |
| 20 | #include "llvm/Support/ErrorHandling.h" |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 21 | #include "llvm/Support/FormattedStream.h" |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 22 | #include "llvm/Support/raw_ostream.h" |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 23 | using namespace llvm; |
| 24 | |
Max Kazantsev | 530b8d1 | 2018-08-15 05:55:43 +0000 | [diff] [blame] | 25 | bool LoopSafetyInfo::headerMayThrow() const { |
| 26 | return HeaderMayThrow; |
| 27 | } |
| 28 | |
Max Kazantsev | 6a4f5e2 | 2018-10-16 07:50:14 +0000 | [diff] [blame^] | 29 | bool LoopSafetyInfo::blockMayThrow(const BasicBlock *BB) const { |
| 30 | (void)BB; |
| 31 | return anyBlockMayThrow(); |
| 32 | } |
| 33 | |
Max Kazantsev | 530b8d1 | 2018-08-15 05:55:43 +0000 | [diff] [blame] | 34 | bool LoopSafetyInfo::anyBlockMayThrow() const { |
| 35 | return MayThrow; |
| 36 | } |
| 37 | |
| 38 | void LoopSafetyInfo::computeLoopSafetyInfo(Loop *CurLoop) { |
Shoaib Meenai | a57d713 | 2018-07-19 19:11:29 +0000 | [diff] [blame] | 39 | assert(CurLoop != nullptr && "CurLoop can't be null"); |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 40 | BasicBlock *Header = CurLoop->getHeader(); |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 41 | // Iterate over header and compute safety info. |
Max Kazantsev | 530b8d1 | 2018-08-15 05:55:43 +0000 | [diff] [blame] | 42 | HeaderMayThrow = !isGuaranteedToTransferExecutionToSuccessor(Header); |
| 43 | MayThrow = HeaderMayThrow; |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 44 | // Iterate over loop instructions and compute safety info. |
| 45 | // Skip header as it has been computed and stored in HeaderMayThrow. |
| 46 | // The first block in loopinfo.Blocks is guaranteed to be the header. |
| 47 | assert(Header == *CurLoop->getBlocks().begin() && |
| 48 | "First block must be header"); |
| 49 | for (Loop::block_iterator BB = std::next(CurLoop->block_begin()), |
| 50 | BBE = CurLoop->block_end(); |
Max Kazantsev | 530b8d1 | 2018-08-15 05:55:43 +0000 | [diff] [blame] | 51 | (BB != BBE) && !MayThrow; ++BB) |
| 52 | MayThrow |= !isGuaranteedToTransferExecutionToSuccessor(*BB); |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 53 | |
| 54 | // Compute funclet colors if we might sink/hoist in a function with a funclet |
| 55 | // personality routine. |
| 56 | Function *Fn = CurLoop->getHeader()->getParent(); |
| 57 | if (Fn->hasPersonalityFn()) |
| 58 | if (Constant *PersonalityFn = Fn->getPersonalityFn()) |
Heejin Ahn | b4be38f | 2018-05-17 20:52:03 +0000 | [diff] [blame] | 59 | if (isScopedEHPersonality(classifyEHPersonality(PersonalityFn))) |
Max Kazantsev | 530b8d1 | 2018-08-15 05:55:43 +0000 | [diff] [blame] | 60 | BlockColors = colorEHFunclets(*Fn); |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | /// Return true if we can prove that the given ExitBlock is not reached on the |
| 64 | /// first iteration of the given loop. That is, the backedge of the loop must |
| 65 | /// be executed before the ExitBlock is executed in any dynamic execution trace. |
Max Kazantsev | a741587 | 2018-08-16 06:28:04 +0000 | [diff] [blame] | 66 | static bool CanProveNotTakenFirstIteration(const BasicBlock *ExitBlock, |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 67 | const DominatorTree *DT, |
| 68 | const Loop *CurLoop) { |
| 69 | auto *CondExitBlock = ExitBlock->getSinglePredecessor(); |
| 70 | if (!CondExitBlock) |
| 71 | // expect unique exits |
| 72 | return false; |
| 73 | assert(CurLoop->contains(CondExitBlock) && "meaning of exit block"); |
| 74 | auto *BI = dyn_cast<BranchInst>(CondExitBlock->getTerminator()); |
| 75 | if (!BI || !BI->isConditional()) |
| 76 | return false; |
Serguei Katkov | 5095883 | 2018-05-18 04:56:28 +0000 | [diff] [blame] | 77 | // If condition is constant and false leads to ExitBlock then we always |
| 78 | // execute the true branch. |
| 79 | if (auto *Cond = dyn_cast<ConstantInt>(BI->getCondition())) |
| 80 | return BI->getSuccessor(Cond->getZExtValue() ? 1 : 0) == ExitBlock; |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 81 | auto *Cond = dyn_cast<CmpInst>(BI->getCondition()); |
| 82 | if (!Cond) |
| 83 | return false; |
| 84 | // todo: this would be a lot more powerful if we used scev, but all the |
| 85 | // plumbing is currently missing to pass a pointer in from the pass |
| 86 | // Check for cmp (phi [x, preheader] ...), y where (pred x, y is known |
| 87 | auto *LHS = dyn_cast<PHINode>(Cond->getOperand(0)); |
| 88 | auto *RHS = Cond->getOperand(1); |
| 89 | if (!LHS || LHS->getParent() != CurLoop->getHeader()) |
| 90 | return false; |
| 91 | auto DL = ExitBlock->getModule()->getDataLayout(); |
| 92 | auto *IVStart = LHS->getIncomingValueForBlock(CurLoop->getLoopPreheader()); |
| 93 | auto *SimpleValOrNull = SimplifyCmpInst(Cond->getPredicate(), |
| 94 | IVStart, RHS, |
| 95 | {DL, /*TLI*/ nullptr, |
| 96 | DT, /*AC*/ nullptr, BI}); |
| 97 | auto *SimpleCst = dyn_cast_or_null<Constant>(SimpleValOrNull); |
| 98 | if (!SimpleCst) |
| 99 | return false; |
| 100 | if (ExitBlock == BI->getSuccessor(0)) |
| 101 | return SimpleCst->isZeroValue(); |
| 102 | assert(ExitBlock == BI->getSuccessor(1) && "implied by above"); |
| 103 | return SimpleCst->isAllOnesValue(); |
| 104 | } |
| 105 | |
Max Kazantsev | bfbd4d1 | 2018-08-21 07:15:06 +0000 | [diff] [blame] | 106 | void LoopSafetyInfo::collectTransitivePredecessors( |
| 107 | const Loop *CurLoop, const BasicBlock *BB, |
| 108 | SmallPtrSetImpl<const BasicBlock *> &Predecessors) const { |
| 109 | assert(Predecessors.empty() && "Garbage in predecessors set?"); |
Max Kazantsev | 7b78d39 | 2018-08-17 06:19:17 +0000 | [diff] [blame] | 110 | assert(CurLoop->contains(BB) && "Should only be called for loop blocks!"); |
Max Kazantsev | 7b78d39 | 2018-08-17 06:19:17 +0000 | [diff] [blame] | 111 | if (BB == CurLoop->getHeader()) |
Max Kazantsev | bfbd4d1 | 2018-08-21 07:15:06 +0000 | [diff] [blame] | 112 | return; |
Max Kazantsev | 7b78d39 | 2018-08-17 06:19:17 +0000 | [diff] [blame] | 113 | SmallVector<const BasicBlock *, 4> WorkList; |
| 114 | for (auto *Pred : predecessors(BB)) { |
| 115 | Predecessors.insert(Pred); |
| 116 | WorkList.push_back(Pred); |
| 117 | } |
| 118 | while (!WorkList.empty()) { |
| 119 | auto *Pred = WorkList.pop_back_val(); |
| 120 | assert(CurLoop->contains(Pred) && "Should only reach loop blocks!"); |
| 121 | // We are not interested in backedges and we don't want to leave loop. |
| 122 | if (Pred == CurLoop->getHeader()) |
| 123 | continue; |
| 124 | // TODO: If BB lies in an inner loop of CurLoop, this will traverse over all |
| 125 | // blocks of this inner loop, even those that are always executed AFTER the |
| 126 | // BB. It may make our analysis more conservative than it could be, see test |
| 127 | // @nested and @nested_no_throw in test/Analysis/MustExecute/loop-header.ll. |
| 128 | // We can ignore backedge of all loops containing BB to get a sligtly more |
| 129 | // optimistic result. |
| 130 | for (auto *PredPred : predecessors(Pred)) |
| 131 | if (Predecessors.insert(PredPred).second) |
| 132 | WorkList.push_back(PredPred); |
| 133 | } |
Max Kazantsev | bfbd4d1 | 2018-08-21 07:15:06 +0000 | [diff] [blame] | 134 | } |
| 135 | |
| 136 | bool LoopSafetyInfo::allLoopPathsLeadToBlock(const Loop *CurLoop, |
| 137 | const BasicBlock *BB, |
| 138 | const DominatorTree *DT) const { |
| 139 | assert(CurLoop->contains(BB) && "Should only be called for loop blocks!"); |
| 140 | |
| 141 | // Fast path: header is always reached once the loop is entered. |
| 142 | if (BB == CurLoop->getHeader()) |
| 143 | return true; |
| 144 | |
| 145 | // Collect all transitive predecessors of BB in the same loop. This set will |
| 146 | // be a subset of the blocks within the loop. |
| 147 | SmallPtrSet<const BasicBlock *, 4> Predecessors; |
| 148 | collectTransitivePredecessors(CurLoop, BB, Predecessors); |
Max Kazantsev | 7b78d39 | 2018-08-17 06:19:17 +0000 | [diff] [blame] | 149 | |
| 150 | // Make sure that all successors of all predecessors of BB are either: |
| 151 | // 1) BB, |
| 152 | // 2) Also predecessors of BB, |
| 153 | // 3) Exit blocks which are not taken on 1st iteration. |
| 154 | // Memoize blocks we've already checked. |
| 155 | SmallPtrSet<const BasicBlock *, 4> CheckedSuccessors; |
Max Kazantsev | 6a4f5e2 | 2018-10-16 07:50:14 +0000 | [diff] [blame^] | 156 | for (auto *Pred : Predecessors) { |
| 157 | // Predecessor block may throw, so it has a side exit. |
| 158 | if (blockMayThrow(Pred)) |
| 159 | return false; |
Max Kazantsev | 7b78d39 | 2018-08-17 06:19:17 +0000 | [diff] [blame] | 160 | for (auto *Succ : successors(Pred)) |
| 161 | if (CheckedSuccessors.insert(Succ).second && |
| 162 | Succ != BB && !Predecessors.count(Succ)) |
| 163 | // By discharging conditions that are not executed on the 1st iteration, |
| 164 | // we guarantee that *at least* on the first iteration all paths from |
| 165 | // header that *may* execute will lead us to the block of interest. So |
| 166 | // that if we had virtually peeled one iteration away, in this peeled |
| 167 | // iteration the set of predecessors would contain only paths from |
| 168 | // header to BB without any exiting edges that may execute. |
| 169 | // |
| 170 | // TODO: We only do it for exiting edges currently. We could use the |
| 171 | // same function to skip some of the edges within the loop if we know |
| 172 | // that they will not be taken on the 1st iteration. |
| 173 | // |
| 174 | // TODO: If we somehow know the number of iterations in loop, the same |
| 175 | // check may be done for any arbitrary N-th iteration as long as N is |
| 176 | // not greater than minimum number of iterations in this loop. |
| 177 | if (CurLoop->contains(Succ) || |
| 178 | !CanProveNotTakenFirstIteration(Succ, DT, CurLoop)) |
| 179 | return false; |
Max Kazantsev | 6a4f5e2 | 2018-10-16 07:50:14 +0000 | [diff] [blame^] | 180 | } |
Max Kazantsev | 7b78d39 | 2018-08-17 06:19:17 +0000 | [diff] [blame] | 181 | |
| 182 | // All predecessors can only lead us to BB. |
| 183 | return true; |
| 184 | } |
| 185 | |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 186 | /// Returns true if the instruction in a loop is guaranteed to execute at least |
| 187 | /// once. |
Max Kazantsev | c8466f9 | 2018-10-16 06:34:53 +0000 | [diff] [blame] | 188 | bool LoopSafetyInfo::isGuaranteedToExecute(const Instruction &Inst, |
| 189 | const DominatorTree *DT, |
| 190 | const Loop *CurLoop) const { |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 191 | // We have to check to make sure that the instruction dominates all |
| 192 | // of the exit blocks. If it doesn't, then there is a path out of the loop |
| 193 | // which does not execute this instruction, so we can't hoist it. |
| 194 | |
| 195 | // If the instruction is in the header block for the loop (which is very |
| 196 | // common), it is always guaranteed to dominate the exit blocks. Since this |
| 197 | // is a common case, and can save some work, check it now. |
| 198 | if (Inst.getParent() == CurLoop->getHeader()) |
| 199 | // If there's a throw in the header block, we can't guarantee we'll reach |
Philip Reames | e4ec473 | 2018-04-27 20:44:01 +0000 | [diff] [blame] | 200 | // Inst unless we can prove that Inst comes before the potential implicit |
| 201 | // exit. At the moment, we use a (cheap) hack for the common case where |
| 202 | // the instruction of interest is the first one in the block. |
Max Kazantsev | c8466f9 | 2018-10-16 06:34:53 +0000 | [diff] [blame] | 203 | return !headerMayThrow() || |
| 204 | Inst.getParent()->getFirstNonPHIOrDbg() == &Inst; |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 205 | |
Max Kazantsev | 7b78d39 | 2018-08-17 06:19:17 +0000 | [diff] [blame] | 206 | // If there is a path from header to exit or latch that doesn't lead to our |
| 207 | // instruction's block, return false. |
Max Kazantsev | c8466f9 | 2018-10-16 06:34:53 +0000 | [diff] [blame] | 208 | if (!allLoopPathsLeadToBlock(CurLoop, Inst.getParent(), DT)) |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 209 | return false; |
| 210 | |
Philip Reames | 23aed5e | 2018-03-20 22:45:23 +0000 | [diff] [blame] | 211 | return true; |
| 212 | } |
| 213 | |
| 214 | |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 215 | namespace { |
| 216 | struct MustExecutePrinter : public FunctionPass { |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 217 | |
| 218 | static char ID; // Pass identification, replacement for typeid |
| 219 | MustExecutePrinter() : FunctionPass(ID) { |
| 220 | initializeMustExecutePrinterPass(*PassRegistry::getPassRegistry()); |
| 221 | } |
| 222 | void getAnalysisUsage(AnalysisUsage &AU) const override { |
| 223 | AU.setPreservesAll(); |
| 224 | AU.addRequired<DominatorTreeWrapperPass>(); |
| 225 | AU.addRequired<LoopInfoWrapperPass>(); |
| 226 | } |
| 227 | bool runOnFunction(Function &F) override; |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 228 | }; |
| 229 | } |
| 230 | |
| 231 | char MustExecutePrinter::ID = 0; |
| 232 | INITIALIZE_PASS_BEGIN(MustExecutePrinter, "print-mustexecute", |
| 233 | "Instructions which execute on loop entry", false, true) |
| 234 | INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass) |
| 235 | INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass) |
| 236 | INITIALIZE_PASS_END(MustExecutePrinter, "print-mustexecute", |
| 237 | "Instructions which execute on loop entry", false, true) |
| 238 | |
| 239 | FunctionPass *llvm::createMustExecutePrinter() { |
| 240 | return new MustExecutePrinter(); |
| 241 | } |
| 242 | |
Benjamin Kramer | 1fc0da4 | 2018-04-04 11:45:11 +0000 | [diff] [blame] | 243 | static bool isMustExecuteIn(const Instruction &I, Loop *L, DominatorTree *DT) { |
Philip Reames | 37a1a29 | 2018-03-20 23:00:54 +0000 | [diff] [blame] | 244 | // TODO: merge these two routines. For the moment, we display the best |
| 245 | // result obtained by *either* implementation. This is a bit unfair since no |
| 246 | // caller actually gets the full power at the moment. |
| 247 | LoopSafetyInfo LSI; |
Max Kazantsev | 530b8d1 | 2018-08-15 05:55:43 +0000 | [diff] [blame] | 248 | LSI.computeLoopSafetyInfo(L); |
Max Kazantsev | c8466f9 | 2018-10-16 06:34:53 +0000 | [diff] [blame] | 249 | return LSI.isGuaranteedToExecute(I, DT, L) || |
Philip Reames | 37a1a29 | 2018-03-20 23:00:54 +0000 | [diff] [blame] | 250 | isGuaranteedToExecuteForEveryIteration(&I, L); |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 251 | } |
| 252 | |
Benjamin Kramer | 1fc0da4 | 2018-04-04 11:45:11 +0000 | [diff] [blame] | 253 | namespace { |
Adrian Prantl | 5f8f34e4 | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 254 | /// An assembly annotator class to print must execute information in |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 255 | /// comments. |
| 256 | class MustExecuteAnnotatedWriter : public AssemblyAnnotationWriter { |
| 257 | DenseMap<const Value*, SmallVector<Loop*, 4> > MustExec; |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 258 | |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 259 | public: |
| 260 | MustExecuteAnnotatedWriter(const Function &F, |
| 261 | DominatorTree &DT, LoopInfo &LI) { |
| 262 | for (auto &I: instructions(F)) { |
| 263 | Loop *L = LI.getLoopFor(I.getParent()); |
| 264 | while (L) { |
| 265 | if (isMustExecuteIn(I, L, &DT)) { |
| 266 | MustExec[&I].push_back(L); |
| 267 | } |
| 268 | L = L->getParentLoop(); |
| 269 | }; |
| 270 | } |
| 271 | } |
| 272 | MustExecuteAnnotatedWriter(const Module &M, |
| 273 | DominatorTree &DT, LoopInfo &LI) { |
| 274 | for (auto &F : M) |
| 275 | for (auto &I: instructions(F)) { |
| 276 | Loop *L = LI.getLoopFor(I.getParent()); |
| 277 | while (L) { |
| 278 | if (isMustExecuteIn(I, L, &DT)) { |
| 279 | MustExec[&I].push_back(L); |
| 280 | } |
| 281 | L = L->getParentLoop(); |
| 282 | }; |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | |
Fangrui Song | f78650a | 2018-07-30 19:41:25 +0000 | [diff] [blame] | 287 | void printInfoComment(const Value &V, formatted_raw_ostream &OS) override { |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 288 | if (!MustExec.count(&V)) |
| 289 | return; |
| 290 | |
| 291 | const auto &Loops = MustExec.lookup(&V); |
| 292 | const auto NumLoops = Loops.size(); |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 293 | if (NumLoops > 1) |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 294 | OS << " ; (mustexec in " << NumLoops << " loops: "; |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 295 | else |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 296 | OS << " ; (mustexec in: "; |
Fangrui Song | f78650a | 2018-07-30 19:41:25 +0000 | [diff] [blame] | 297 | |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 298 | bool first = true; |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 299 | for (const Loop *L : Loops) { |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 300 | if (!first) |
| 301 | OS << ", "; |
| 302 | first = false; |
| 303 | OS << L->getHeader()->getName(); |
| 304 | } |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 305 | OS << ")"; |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 306 | } |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 307 | }; |
Benjamin Kramer | 1fc0da4 | 2018-04-04 11:45:11 +0000 | [diff] [blame] | 308 | } // namespace |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 309 | |
| 310 | bool MustExecutePrinter::runOnFunction(Function &F) { |
| 311 | auto &LI = getAnalysis<LoopInfoWrapperPass>().getLoopInfo(); |
| 312 | auto &DT = getAnalysis<DominatorTreeWrapperPass>().getDomTree(); |
| 313 | |
| 314 | MustExecuteAnnotatedWriter Writer(F, DT, LI); |
| 315 | F.print(dbgs(), &Writer); |
Fangrui Song | f78650a | 2018-07-30 19:41:25 +0000 | [diff] [blame] | 316 | |
Philip Reames | ce998ad | 2018-03-20 18:43:44 +0000 | [diff] [blame] | 317 | return false; |
Philip Reames | 89f2241 | 2018-03-20 17:09:21 +0000 | [diff] [blame] | 318 | } |