aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-26 23:35:25 +0000
committerChris Lattner <sabre@nondot.org>2010-02-26 23:35:25 +0000
commit7d91dc8a910b7a462f104b1951706e3771f5c6c1 (patch)
tree2c0e85fd280abc3a155f8f45548af15e377aebb1 /lib/Transforms/IPO
parent2e2ea0a9e89582ec1b057036ef4c93959a871b75 (diff)
downloadexternal_llvm-7d91dc8a910b7a462f104b1951706e3771f5c6c1.zip
external_llvm-7d91dc8a910b7a462f104b1951706e3771f5c6c1.tar.gz
external_llvm-7d91dc8a910b7a462f104b1951706e3771f5c6c1.tar.bz2
remove dead code, by this point all uses of CI are gone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/GlobalOpt.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp
index 73a5504..2ba7ed9 100644
--- a/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/lib/Transforms/IPO/GlobalOpt.cpp
@@ -543,7 +543,7 @@ static GlobalVariable *SRAGlobal(GlobalVariable *GV, const TargetData &TD) {
if (NewGlobals.empty())
return 0;
-
+
DEBUG(dbgs() << "PERFORMING GLOBAL SRA ON: " << *GV);
Constant *NullInt =Constant::getNullValue(Type::getInt32Ty(GV->getContext()));
@@ -855,9 +855,6 @@ static GlobalVariable *OptimizeGlobalAddressOfMalloc(GlobalVariable *GV,
}
}
- // Update Anything else that used the malloc or its bitcast now uses the global directly.
- CI->replaceAllUsesWith(new BitCastInst(NewGV, CI->getType(), "newgv", CI));
-
Constant *RepValue = NewGV;
if (NewGV->getType() != GV->getType()->getElementType())
RepValue = ConstantExpr::getBitCast(RepValue,