aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
diff options
context:
space:
mode:
authorSuyog Sarda <suyog.sarda@samsung.com>2014-10-07 11:56:06 +0000
committerSuyog Sarda <suyog.sarda@samsung.com>2014-10-07 11:56:06 +0000
commitea205517a953fc1f4ff85f0c72d930a143c590cb (patch)
tree4471574131da8927422a2532a9be3a84f6126be4 /llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
parent181cc9a029706a05f14bc93031e9fc8eefc73945 (diff)
downloadllvm-ea205517a953fc1f4ff85f0c72d930a143c590cb.zip
llvm-ea205517a953fc1f4ff85f0c72d930a143c590cb.tar.gz
llvm-ea205517a953fc1f4ff85f0c72d930a143c590cb.tar.bz2
Reformat to comply with LLVM coding standards using clang-format.
NFC. Differential Revision: http://reviews.llvm.org/D5645 llvm-svn: 219202
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
index 2f57a73..0853ec4 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -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;