commit | ab038d44b008fbcf22500c1ac29d3a0d434e80f5 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun May 26 20:18:18 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun May 26 20:18:18 2002 +0000 |
tree | 0800a2f109235f03ceb2adb6ae17b710beac426f | |
parent | 2904f4469356a11c52bcc8432e5cb23d798f2ee1 [diff] [blame] |
Simplify the interface to local DCE and Constant prop llvm-svn: 2749
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 3be163c..2e5adf6 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -184,7 +184,7 @@ visit(BB->begin()[i]); BasicBlock::iterator It = BB->begin()+i; - if (dceInstruction(BB->getInstList(), It)) + if (dceInstruction(It)) Changed = true; else ++i;