ΒΆOptional<unsigned int> findDuplicateOutputBlock(
DenseMap<llvm::Value*, llvm::BasicBlock*>&
OutputBBs,
std::vector<DenseMap<Value*, BasicBlock*>>&
OutputStoreBBs)
Optional<unsigned int> findDuplicateOutputBlock(
DenseMap<llvm::Value*, llvm::BasicBlock*>&
OutputBBs,
std::vector<DenseMap<Value*, BasicBlock*>>&
OutputStoreBBs)
Description
It is possible that there is a basic block that already performs the same stores. This returns a duplicate block, if it exists
Declared at: llvm/lib/Transforms/IPO/IROutliner.cpp:1961
Parameters
- DenseMap<llvm::Value*, llvm::BasicBlock*>& OutputBBs
- [in] the blocks we are looking for a duplicate of.
- std::vector<DenseMap<Value*, BasicBlock*>>& OutputStoreBBs
- [in] The existing output blocks.
Returns
an optional value with the number output block if there is a match.