1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

add missing line.

llvm-svn: 92384
This commit is contained in:
Chris Lattner 2010-01-01 01:54:08 +00:00
parent e5f5e4b151
commit 6d58c7dd39

View File

@ -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;