[llvm] r259262 - fix formatting; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 15:14:59 PST 2016


Author: spatel
Date: Fri Jan 29 17:14:58 2016
New Revision: 259262

URL: http://llvm.org/viewvc/llvm-project?rev=259262&view=rev
Log:
fix formatting; NFC

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=259262&r1=259261&r2=259262&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Fri Jan 29 17:14:58 2016
@@ -640,7 +640,8 @@ static Value *SimplifyX86vperm2(const In
 
 /// Decode XOP integer vector comparison intrinsics.
 static Value *SimplifyX86vpcom(const IntrinsicInst &II,
-                               InstCombiner::BuilderTy &Builder, bool IsSigned) {
+                               InstCombiner::BuilderTy &Builder,
+                               bool IsSigned) {
   if (auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2))) {
     uint64_t Imm = CInt->getZExtValue() & 0x7;
     VectorType *VecTy = cast<VectorType>(II.getType());
@@ -669,7 +670,8 @@ static Value *SimplifyX86vpcom(const Int
       return ConstantInt::getSigned(VecTy, -1); // TRUE
     }
 
-    if (Value *Cmp = Builder.CreateICmp(Pred, II.getArgOperand(0), II.getArgOperand(1)))
+    if (Value *Cmp = Builder.CreateICmp(Pred, II.getArgOperand(0),
+                                        II.getArgOperand(1)))
       return Builder.CreateSExtOrTrunc(Cmp, VecTy);
   }
   return nullptr;
@@ -1769,7 +1771,8 @@ Instruction *InstCombiner::visitCallInst
     // TODO: provide a hook for this in GCStrategy.  There might be some weird
     // collector this property does not hold for.
     if (isa<ConstantPointerNull>(DerivedPtr)) {
-      // gc_relocate is uncasted. Use null-pointer of gc_relocate's type to replace it.
+      // gc_relocate is uncasted. Use null-pointer of gc_relocate's type to
+      // replace it.
       return ReplaceInstUsesWith(*II, ConstantPointerNull::get(GCRelocateType));
     }
 
@@ -1941,7 +1944,8 @@ Instruction *InstCombiner::visitCallSite
   unsigned ArgNo = 0;
 
   for (Value *V : CS.args()) {
-    if (V->getType()->isPointerTy() && !CS.paramHasAttr(ArgNo+1, Attribute::NonNull) &&
+    if (V->getType()->isPointerTy() &&
+        !CS.paramHasAttr(ArgNo + 1, Attribute::NonNull) &&
         isKnownNonNullAt(V, CS.getInstruction(), DT, TLI))
       Indices.push_back(ArgNo + 1);
     ArgNo++;




More information about the llvm-commits mailing list