[llvm] r219202 - Reformat to comply with LLVM coding standards using clang-format.
Suyog Sarda
suyog.sarda at samsung.com
Tue Oct 7 04:56:06 PDT 2014
Author: suyog
Date: Tue Oct 7 06:56:06 2014
New Revision: 219202
URL: http://llvm.org/viewvc/llvm-project?rev=219202&view=rev
Log:
Reformat to comply with LLVM coding standards using clang-format.
NFC.
Differential Revision: http://reviews.llvm.org/D5645
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=219202&r1=219201&r2=219202&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Tue Oct 7 06:56:06 2014
@@ -985,9 +985,9 @@ Instruction *InstCombiner::visitUDiv(Bin
// (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(Bin
/// 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;
More information about the llvm-commits
mailing list