mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Factor some code out of SimplifyCFG, forming a new
DeleteBlockIfDead method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -26,6 +26,11 @@ class Instruction;
|
||||
class Pass;
|
||||
class AliasAnalysis;
|
||||
|
||||
/// DeleteBlockIfDead - If the specified basic block is trivially dead (has no
|
||||
/// predecessors and not the entry block), delete it and return true. Otherwise
|
||||
/// return false.
|
||||
bool DeleteBlockIfDead(BasicBlock *BB);
|
||||
|
||||
/// MergeBlockIntoPredecessor - Attempts to merge a block into its predecessor,
|
||||
/// if possible. The return value indicates success or failure.
|
||||
bool MergeBlockIntoPredecessor(BasicBlock* BB, Pass* P = 0);
|
||||
|
Reference in New Issue
Block a user