diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-03-24 18:57:31 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-03-24 18:57:31 +0000 |
commit | 42f91a995960b13dc2a661381e1e18b226d18cea (patch) | |
tree | aa8eaa525123169cca2ad924bf16e94fd15cab84 /llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp | |
parent | 611eeae7d2779daaccd4f981ab173a7649f878b4 (diff) | |
download | bcm5719-llvm-42f91a995960b13dc2a661381e1e18b226d18cea.tar.gz bcm5719-llvm-42f91a995960b13dc2a661381e1e18b226d18cea.zip |
Minor cosmestic changes (NFC)
- Reflow comments
- Rename function
llvm-svn: 264319
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp index d4da79699a7..56035d4fcfb 100644 --- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp @@ -246,10 +246,10 @@ static void reservePreviousStackSlotForValue(const Value *IncomingValue, /// StackMap section. It has no effect on the number of spill slots required /// or the actual lowering. static void -removeDuplicatesGCPtrs(SmallVectorImpl<const Value *> &Bases, - SmallVectorImpl<const Value *> &Ptrs, - SmallVectorImpl<const GCRelocateInst *> &Relocs, - SelectionDAGBuilder &Builder) { +removeDuplicateGCPtrs(SmallVectorImpl<const Value *> &Bases, + SmallVectorImpl<const Value *> &Ptrs, + SmallVectorImpl<const GCRelocateInst *> &Relocs, + SelectionDAGBuilder &Builder) { // This is horribly inefficient, but I don't care right now SmallSet<SDValue, 32> Seen; @@ -540,8 +540,8 @@ SDValue SelectionDAGBuilder::LowerAsSTATEPOINT( StatepointLowering.startNewStatepoint(*this); #ifndef NDEBUG - // We schedule gc relocates before removeDuplicatesGCPtrs since we _will_ - // encounter the duplicate gc relocates we elide in removeDuplicatesGCPtrs. + // We schedule gc relocates before removeDuplicateGCPtrs since we _will_ + // encounter the duplicate gc relocates we elide in removeDuplicateGCPtrs. for (auto *Reloc : SI.GCRelocates) if (Reloc->getParent() == SI.StatepointInstr->getParent()) StatepointLowering.scheduleRelocCall(*Reloc); @@ -551,7 +551,7 @@ SDValue SelectionDAGBuilder::LowerAsSTATEPOINT( // input. Also has the effect of removing duplicates in the original // llvm::Value input list as well. This is a useful optimization for // reducing the size of the StackMap section. It has no other impact. - removeDuplicatesGCPtrs(SI.Bases, SI.Ptrs, SI.GCRelocates, *this); + removeDuplicateGCPtrs(SI.Bases, SI.Ptrs, SI.GCRelocates, *this); assert(SI.Bases.size() == SI.Ptrs.size() && SI.Ptrs.size() == SI.GCRelocates.size()); |