This pass is not needed, as there is only ever one global: the stack
authorChris Lattner <sabre@nondot.org>
Thu, 7 Oct 2004 04:10:36 +0000 (04:10 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Oct 2004 04:10:36 +0000 (04:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16800 91177308-0d34-0410-b5e6-96231b3b80d8

projects/Stacker/lib/compiler/StackerCompiler.cpp

index 83b777be3cee1efb37145c39d4723eea94fb683c..432ffe9b2b68659e069fbd3ee1bb11e99936c148 100644 (file)
@@ -272,8 +272,6 @@ StackerCompiler::compile(
             if (optLevel > 1) {
                 // Clean up disgusting code
                 Passes.add(createCFGSimplificationPass()); 
-                // Mark read-only globals const
-                Passes.add(createGlobalConstifierPass());  
                 // Remove unused globals
                 Passes.add(createGlobalDCEPass());         
                 // IP Constant Propagation