mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Reformat to comply with LLVM coding standards using clang-format.
NFC. Differential Revision: http://reviews.llvm.org/D5645 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea7f495d4f
commit
1e4680c4b8
@ -985,9 +985,9 @@ Instruction *InstCombiner::visitUDiv(BinaryOperator &I) {
|
||||
// (zext A) udiv (zext B) --> zext (A udiv B)
|
||||
if (ZExtInst *ZOp0 = dyn_cast<ZExtInst>(Op0))
|
||||
if (Value *ZOp1 = dyn_castZExtVal(Op1, ZOp0->getSrcTy()))
|
||||
return new ZExtInst(Builder->CreateUDiv(ZOp0->getOperand(0), ZOp1, "div",
|
||||
I.isExact()),
|
||||
I.getType());
|
||||
return new ZExtInst(
|
||||
Builder->CreateUDiv(ZOp0->getOperand(0), ZOp1, "div", I.isExact()),
|
||||
I.getType());
|
||||
|
||||
// (LHS udiv (select (select (...)))) -> (LHS >> (select (select (...))))
|
||||
SmallVector<UDivFoldAction, 6> UDivActions;
|
||||
@ -1092,8 +1092,7 @@ Instruction *InstCombiner::visitSDiv(BinaryOperator &I) {
|
||||
/// If the conversion was successful, the simplified expression "X * 1/C" is
|
||||
/// returned; otherwise, NULL is returned.
|
||||
///
|
||||
static Instruction *CvtFDivConstToReciprocal(Value *Dividend,
|
||||
Constant *Divisor,
|
||||
static Instruction *CvtFDivConstToReciprocal(Value *Dividend, Constant *Divisor,
|
||||
bool AllowReciprocal) {
|
||||
if (!isa<ConstantFP>(Divisor)) // TODO: handle vectors.
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user