Simplify the interface to local dce and constprop
authorChris Lattner <sabre@nondot.org>
Sun, 26 May 2002 20:18:35 +0000 (20:18 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 May 2002 20:18:35 +0000 (20:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2750 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Utils/Local.h

index ed8bbdf3c320c101949266af04c8b8e869b70eee..69bb5a66e46db58815936b0735128cc96e0b3624 100644 (file)
@@ -18,7 +18,7 @@
 // doConstantPropogation - Constant prop a specific instruction.  Returns true
 // and potentially moves the iterator if constant propogation was performed.
 //
-bool doConstantPropogation(BasicBlock *BB, BasicBlock::iterator &I);
+bool doConstantPropogation(BasicBlock::iterator &I);
 
 // ConstantFoldTerminator - If a terminator instruction is predicated on a
 // constant value, convert it into an unconditional branch to the constant
@@ -42,7 +42,7 @@ bool isInstructionTriviallyDead(Instruction *I);
 // isTriviallyDead.  If so, remove the instruction and update the iterator to
 // point to the instruction that immediately succeeded the original instruction.
 //
-bool dceInstruction(BasicBlock::InstListType &BBIL, BasicBlock::iterator &BBI);
+bool dceInstruction(BasicBlock::iterator &BBI);
 
 
 //===----------------------------------------------------------------------===//