summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-04-25 17:45:52 +0000
committerNate Begeman <natebegeman@mac.com>2008-04-25 17:45:52 +0000
commitca270ad96f5a7c0e0b4b767d5c666aa3170b24f2 (patch)
treec7525eef4bc422b521a94ac008729eea68f5eca3 /llvm/lib/Transforms
parent33bd24bd92307a797a88072d628810e242cd8ceb (diff)
downloadbcm5719-llvm-ca270ad96f5a7c0e0b4b767d5c666aa3170b24f2.tar.gz
bcm5719-llvm-ca270ad96f5a7c0e0b4b767d5c666aa3170b24f2.zip
Feedback from chris
llvm-svn: 50271
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 54c6a809da3..57369143b45 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -307,8 +307,8 @@ ConstantFoldMappedInstruction(const Instruction *I) {
return ConstantFoldCompareInstOperands(CI->getPredicate(),
&Ops[0], Ops.size(), TD);
- if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ops[0]))
- if (const LoadInst *LI = dyn_cast<LoadInst>(I))
+ if (const LoadInst *LI = dyn_cast<LoadInst>(I))
+ if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Ops[0]))
if (!LI->isVolatile() && CE->getOpcode() == Instruction::GetElementPtr)
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(CE->getOperand(0)))
if (GV->isConstant() && !GV->isDeclaration())
OpenPOWER on IntegriCloud