diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-01 01:54:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-01 01:54:08 +0000 |
commit | ee1f861d812fb205688e13bb48c724e34abb2baf (patch) | |
tree | d722b2844819fefc34a753d3f5509e17fff504a3 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 8330daf733f73944521aae378c524f7134260cf0 (diff) | |
download | bcm5719-llvm-ee1f861d812fb205688e13bb48c724e34abb2baf.tar.gz bcm5719-llvm-ee1f861d812fb205688e13bb48c724e34abb2baf.zip |
add missing line.
llvm-svn: 92384
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index cd553f0811a..516d72ea899 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -10149,8 +10149,9 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { if (Power->isOne()) return ReplaceInstUsesWith(CI, II->getOperand(1)); // powi(x, -1) -> 1/x - return BinaryOperator::CreateFDiv(ConstantFP::get(CI.getType(), 1.0), - II->getOperand(1)); + if (Power->isAllOnesValue()) + return BinaryOperator::CreateFDiv(ConstantFP::get(CI.getType(), 1.0), + II->getOperand(1)); } break; |