[llvm-commits] [llvm] r97283 - /llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Chris Lattner
sabre at nondot.org
Fri Feb 26 15:35:25 PST 2010
Author: lattner
Date: Fri Feb 26 17:35:25 2010
New Revision: 97283
URL: http://llvm.org/viewvc/llvm-project?rev=97283&view=rev
Log:
remove dead code, by this point all uses of CI are gone.
Modified:
llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Modified: llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp?rev=97283&r1=97282&r2=97283&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp Fri Feb 26 17:35:25 2010
@@ -543,7 +543,7 @@
if (NewGlobals.empty())
return 0;
-
+
DEBUG(dbgs() << "PERFORMING GLOBAL SRA ON: " << *GV);
Constant *NullInt =Constant::getNullValue(Type::getInt32Ty(GV->getContext()));
@@ -855,9 +855,6 @@
}
}
- // 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,
More information about the llvm-commits
mailing list