diff options
author | Sebastian Pop <spop@codeaurora.org> | 2012-03-05 17:39:45 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2012-03-05 17:39:45 +0000 |
commit | 8844e224b869621ba99ccaeee80939b2577c3a14 (patch) | |
tree | f6e7719400b5e944b65a0d546ecfa393857d671b /llvm/lib/Transforms/Vectorize/BBVectorize.cpp | |
parent | 73ecd70d3870c332e2df6a50b85c32d3b48bdecb (diff) | |
download | bcm5719-llvm-8844e224b869621ba99ccaeee80939b2577c3a14.tar.gz bcm5719-llvm-8844e224b869621ba99ccaeee80939b2577c3a14.zip |
remove spaces on empty lines
llvm-svn: 152034
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/BBVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/BBVectorize.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp index 9592d2572f2..67add271a04 100644 --- a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp @@ -456,34 +456,34 @@ namespace { ShouldContinue = getCandidatePairs(BB, Start, CandidatePairs, PairableInsts); if (PairableInsts.empty()) continue; - + // Now we have a map of all of the pairable instructions and we need to // select the best possible pairing. A good pairing is one such that the // users of the pair are also paired. This defines a (directed) forest // over the pairs such that two pairs are connected iff the second pair // uses the first. - + // Note that it only matters that both members of the second pair use some // element of the first pair (to allow for splatting). - + std::multimap<ValuePair, ValuePair> ConnectedPairs; computeConnectedPairs(CandidatePairs, PairableInsts, ConnectedPairs); if (ConnectedPairs.empty()) continue; - + // Build the pairable-instruction dependency map DenseSet<ValuePair> PairableInstUsers; buildDepMap(BB, CandidatePairs, PairableInsts, PairableInstUsers); - + // There is now a graph of the connected pairs. For each variable, pick // the pairing with the largest tree meeting the depth requirement on at // least one branch. Then select all pairings that are part of that tree // and remove them from the list of available pairings and pairable // variables. - + DenseMap<Value *, Value *> ChosenPairs; choosePairs(CandidatePairs, PairableInsts, ConnectedPairs, PairableInstUsers, ChosenPairs); - + if (ChosenPairs.empty()) continue; AllPairableInsts.insert(AllPairableInsts.end(), PairableInsts.begin(), PairableInsts.end()); @@ -492,14 +492,14 @@ namespace { if (AllChosenPairs.empty()) return false; NumFusedOps += AllChosenPairs.size(); - + // A set of pairs has now been selected. It is now necessary to replace the // paired instructions with vector instructions. For this procedure each // operand much be replaced with a vector operand. This vector is formed // by using build_vector on the old operands. The replaced values are then // replaced with a vector_extract on the result. Subsequent optimization // passes should coalesce the build/extract combinations. - + fuseChosenPairs(BB, AllPairableInsts, AllChosenPairs); return true; } |