diff options
author | Junmo Park <junmoz.park@samsung.com> | 2016-03-11 07:05:32 +0000 |
---|---|---|
committer | Junmo Park <junmoz.park@samsung.com> | 2016-03-11 07:05:32 +0000 |
commit | 6098cbbd2c6de04bba89ab4292349f63fc3c3384 (patch) | |
tree | f79c598ae936c9e0f1c935344b250d1af97c5f17 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | ac4bd45f021cff8310088a1a8418e58ad82fa65f (diff) | |
download | bcm5719-llvm-6098cbbd2c6de04bba89ab4292349f63fc3c3384.tar.gz bcm5719-llvm-6098cbbd2c6de04bba89ab4292349f63fc3c3384.zip |
Minor code cleanups. NFC.
llvm-svn: 263200
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 0df2971b104..4932173e103 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -1771,7 +1771,7 @@ bool CodeGenPrepare::optimizeCallInst(CallInst *CI, bool& ModifiedDT) { 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(Instruction *I, ExtAddrMode &AMBefore, // 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)) |