mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +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:
@@ -985,9 +985,9 @@ Instruction *InstCombiner::visitUDiv(BinaryOperator &I) {
|
|||||||
// (zext A) udiv (zext B) --> zext (A udiv B)
|
// (zext A) udiv (zext B) --> zext (A udiv B)
|
||||||
if (ZExtInst *ZOp0 = dyn_cast<ZExtInst>(Op0))
|
if (ZExtInst *ZOp0 = dyn_cast<ZExtInst>(Op0))
|
||||||
if (Value *ZOp1 = dyn_castZExtVal(Op1, ZOp0->getSrcTy()))
|
if (Value *ZOp1 = dyn_castZExtVal(Op1, ZOp0->getSrcTy()))
|
||||||
return new ZExtInst(Builder->CreateUDiv(ZOp0->getOperand(0), ZOp1, "div",
|
return new ZExtInst(
|
||||||
I.isExact()),
|
Builder->CreateUDiv(ZOp0->getOperand(0), ZOp1, "div", I.isExact()),
|
||||||
I.getType());
|
I.getType());
|
||||||
|
|
||||||
// (LHS udiv (select (select (...)))) -> (LHS >> (select (select (...))))
|
// (LHS udiv (select (select (...)))) -> (LHS >> (select (select (...))))
|
||||||
SmallVector<UDivFoldAction, 6> UDivActions;
|
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
|
/// If the conversion was successful, the simplified expression "X * 1/C" is
|
||||||
/// returned; otherwise, NULL is returned.
|
/// returned; otherwise, NULL is returned.
|
||||||
///
|
///
|
||||||
static Instruction *CvtFDivConstToReciprocal(Value *Dividend,
|
static Instruction *CvtFDivConstToReciprocal(Value *Dividend, Constant *Divisor,
|
||||||
Constant *Divisor,
|
|
||||||
bool AllowReciprocal) {
|
bool AllowReciprocal) {
|
||||||
if (!isa<ConstantFP>(Divisor)) // TODO: handle vectors.
|
if (!isa<ConstantFP>(Divisor)) // TODO: handle vectors.
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Reference in New Issue
Block a user