From c3c92d834a78b16910b4afef29697c0b83a89f26 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 18 Jul 2004 08:32:10 +0000 Subject: [PATCH] Expand the scope to include global values because they are now constants too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14964 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/GCSE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index c24941320fc..a3452a3f847 100644 --- a/lib/Transforms/Scalar/GCSE.cpp +++ b/lib/Transforms/Scalar/GCSE.cpp @@ -185,7 +185,7 @@ void GCSE::ReplaceInstructionWith(Instruction *I, Value *V) { // If we are not replacing the instruction with a constant, we cannot do // anything special. - if (!isa(V) || isa(V)) { + if (!isa(V)) { I->replaceAllUsesWith(V); if (InvokeInst *II = dyn_cast(I)) { -- 2.34.1