commit | f9ead87c681204cf86f9575fc3f08fb4acbf7899 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Jan 01 01:54:08 2010 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Jan 01 01:54:08 2010 +0000 |
tree | 6b9fbdfa33198a46c2632f7ebb01c77c8527f849 | |
parent | d27f911b2309ed7812bdd4da50a87fed0e253815 [diff] [blame] |
add missing line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92384 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index cd553f0..516d72e 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -10149,8 +10149,9 @@ 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;