Local.h (210299) | Local.h (212904) |
---|---|
1//===-- Local.h - Functions to perform local transformations ----*- C++ -*-===// 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//===----------------------------------------------------------------------===// --- 104 unchanged lines hidden (view full) --- 113bool EliminateDuplicatePHINodes(BasicBlock *BB); 114 115/// SimplifyCFG - This function is used to do simplification of a CFG. For 116/// example, it adjusts branches to branches to eliminate the extra hop, it 117/// eliminates unreachable basic blocks, and does other "peephole" optimization 118/// of the CFG. It returns true if a modification was made, possibly deleting 119/// the basic block that was pointed to. 120/// | 1//===-- Local.h - Functions to perform local transformations ----*- C++ -*-===// 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//===----------------------------------------------------------------------===// --- 104 unchanged lines hidden (view full) --- 113bool EliminateDuplicatePHINodes(BasicBlock *BB); 114 115/// SimplifyCFG - This function is used to do simplification of a CFG. For 116/// example, it adjusts branches to branches to eliminate the extra hop, it 117/// eliminates unreachable basic blocks, and does other "peephole" optimization 118/// of the CFG. It returns true if a modification was made, possibly deleting 119/// the basic block that was pointed to. 120/// |
121/// WARNING: The entry node of a method may not be simplified. 122/// | |
123bool SimplifyCFG(BasicBlock *BB, const TargetData *TD = 0); 124 125/// FoldBranchToCommonDest - If this basic block is ONLY a setcc and a branch, 126/// and if a predecessor branches to us and one of our successors, fold the 127/// setcc into the predecessor and use logical operations to pick the right 128/// destination. 129bool FoldBranchToCommonDest(BranchInst *BI); 130 --- 18 unchanged lines hidden --- | 121bool SimplifyCFG(BasicBlock *BB, const TargetData *TD = 0); 122 123/// FoldBranchToCommonDest - If this basic block is ONLY a setcc and a branch, 124/// and if a predecessor branches to us and one of our successors, fold the 125/// setcc into the predecessor and use logical operations to pick the right 126/// destination. 127bool FoldBranchToCommonDest(BranchInst *BI); 128 --- 18 unchanged lines hidden --- |