[llvm] r263200 - Minor code cleanups. NFC.

Junmo Park via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 10 23:05:33 PST 2016


Author: flyingforyou
Date: Fri Mar 11 01:05:32 2016
New Revision: 263200

URL: http://llvm.org/viewvc/llvm-project?rev=263200&view=rev
Log:
Minor code cleanups. NFC.

Modified:
    llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp?rev=263200&r1=263199&r2=263200&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp Fri Mar 11 01:05:32 2016
@@ -1771,7 +1771,7 @@ bool CodeGenPrepare::optimizeCallInst(Ca
       unsigned AS = Arg->getType()->getPointerAddressSpace();
       return optimizeMemoryInst(CI, Arg, Arg->getType(), AS);
     }
-  
+
   IntrinsicInst *II = dyn_cast<IntrinsicInst>(CI);
   if (II) {
     switch (II->getIntrinsicID()) {
@@ -3478,7 +3478,7 @@ static bool FindAllMemoryUses(
       // the cold path.  See optimizeCallInst
       if (!OptSize && CI->hasFnAttr(Attribute::Cold))
         continue;
-      
+
       InlineAsm *IA = dyn_cast<InlineAsm>(CI->getCalledValue());
       if (!IA) return true;
 
@@ -3573,7 +3573,7 @@ isProfitableToFoldIntoAddressingMode(Ins
   // If all uses of this instruction can have the address mode sunk into them,
   // we can remove the addressing mode and effectively trade one live register
   // for another (at worst.)  In this context, folding an addressing mode into
-  // the use is just a particularly nice way of sinking it.  
+  // the use is just a particularly nice way of sinking it.
   SmallVector<std::pair<Instruction*,unsigned>, 16> MemoryUses;
   SmallPtrSet<Instruction*, 16> ConsideredInsts;
   if (FindAllMemoryUses(I, MemoryUses, ConsideredInsts, TM))




More information about the llvm-commits mailing list