summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 07b3249c8c..4d141533b8 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -360,16 +360,6 @@ Constant *llvm::ConstantFoldCall(Function *F,
} else if (Name == "atan2")
return ConstantFP::get(Ty, atan2(Op1V,Op2V));
}
- else if (Name == "pow" && Op1V == 1.0) {
- return ConstantFP::get(Ty,1.0);
- }
- } else if (ConstantFP* Op2 = dyn_cast<ConstantFP>(Operands[1])) {
- double Op2V = Op2->getValue();
- if (Name == "pow")
- if (Op2V == 0.0)
- return ConstantFP::get(Ty,1.0);
- else if (Op2V == 1.0)
- return Operands[0];
}
}
return 0;