diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-04-23 21:38:35 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-04-23 21:38:35 +0000 |
commit | 82639853c07c0119fdf38bed29fc4db55f893d5f (patch) | |
tree | 7e42f4bec2b385bce91d30a93055fece1256f074 /llvm/lib/Transforms/Scalar/SCCP.cpp | |
parent | 8047f13a888189189f1efde5509462b80a967bd1 (diff) | |
download | bcm5719-llvm-82639853c07c0119fdf38bed29fc4db55f893d5f.tar.gz bcm5719-llvm-82639853c07c0119fdf38bed29fc4db55f893d5f.zip |
Eliminate tabs and trailing spaces
llvm-svn: 21480
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 384c00d1ceb..d9d74ca8ea9 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -835,13 +835,13 @@ void SCCPSolver::visitLoadInst(LoadInst &I) { // Transform load (constantexpr_GEP global, 0, ...) into the value loaded. if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ptr)) if (CE->getOpcode() == Instruction::GetElementPtr) - if (GlobalVariable *GV = dyn_cast<GlobalVariable>(CE->getOperand(0))) - if (GV->isConstant() && !GV->isExternal()) - if (Constant *V = - GetGEPGlobalInitializer(GV->getInitializer(), CE)) { - markConstant(IV, &I, V); - return; - } + if (GlobalVariable *GV = dyn_cast<GlobalVariable>(CE->getOperand(0))) + if (GV->isConstant() && !GV->isExternal()) + if (Constant *V = + GetGEPGlobalInitializer(GV->getInitializer(), CE)) { + markConstant(IV, &I, V); + return; + } } // Otherwise we cannot say for certain what value this load will produce. @@ -915,7 +915,7 @@ void SCCPSolver::visitCallSite(CallSite CS) { void SCCPSolver::Solve() { // Process the work lists until they are empty! while (!BBWorkList.empty() || !InstWorkList.empty() || - !OverdefinedInstWorkList.empty()) { + !OverdefinedInstWorkList.empty()) { // Process the instruction work list... while (!OverdefinedInstWorkList.empty()) { Value *I = OverdefinedInstWorkList.back(); |