mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-23 13:02:52 +02:00
IntegerDivision: Style cleanups, avoid warning about mixing || and && without parens.
llvm-svn: 164216
This commit is contained in:
parent
96b6f5646b
commit
589882af87
@ -266,16 +266,14 @@ static Value* GenerateUnsignedDivisionCode(Value* Dividend, Value* Divisor,
|
||||
}
|
||||
|
||||
bool llvm::expandDivision(BinaryOperator* Div) {
|
||||
assert(Div->getOpcode() == Instruction::SDiv ||
|
||||
Div->getOpcode() == Instruction::UDiv
|
||||
&& "Trying to expand division from a non-division function");
|
||||
assert((Div->getOpcode() == Instruction::SDiv ||
|
||||
Div->getOpcode() == Instruction::UDiv) &&
|
||||
"Trying to expand division from a non-division function");
|
||||
|
||||
IRBuilder<> Builder(Div);
|
||||
|
||||
if (Div->getType()->isVectorTy()) {
|
||||
assert(0 && "Div over vectors not supported");
|
||||
return false;
|
||||
}
|
||||
if (Div->getType()->isVectorTy())
|
||||
llvm_unreachable("Div over vectors not supported");
|
||||
|
||||
// First prepare the sign if it's a signed division
|
||||
if (Div->getOpcode() == Instruction::SDiv) {
|
||||
|
Loading…
Reference in New Issue
Block a user