diff options
| author | Kyle Butt <kyle+llvm@iteratee.net> | 2016-08-06 01:52:33 +0000 |
|---|---|---|
| committer | Kyle Butt <kyle+llvm@iteratee.net> | 2016-08-06 01:52:33 +0000 |
| commit | 4f0e2879060827d13290e760c465dcbf0caedb2a (patch) | |
| tree | c4b5a88c5dc060de2530fca6d18574a49dca08ea /llvm/lib/CodeGen | |
| parent | fe916828eea2de844227fd1a82f3e107b922261c (diff) | |
| download | bcm5719-llvm-4f0e2879060827d13290e760c465dcbf0caedb2a.tar.gz bcm5719-llvm-4f0e2879060827d13290e760c465dcbf0caedb2a.zip | |
IfConversion: Document countDuplicatedInstructions. NFC
llvm-svn: 277903
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index 7ca86dc7798..bc1da7cba18 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/lib/CodeGen/IfConversion.cpp @@ -564,6 +564,18 @@ static inline bool skipDebugInstructionsBackward( return It == Begin; } +/// Count duplicated instructions and move the iterators to show where they +/// are. +/// @param TIB True Iterator Begin +/// @param FIB False Iterator Begin +/// These two iterators initially point to the first instruction of the two +/// blocks, and finally point to the first non-shared instruction. +/// @param TIE True Iterator End +/// @param FIE False Iterator End +/// These two iterators initially point to End() for the two blocks() and +/// finally point to the first shared instruction in the tail. +/// Upon return [TIB, TIE), and [FIB, FIE) mark the un-duplicated portions of +/// two blocks. static void countDuplicatedInstructions( MachineBasicBlock::iterator &TIB, MachineBasicBlock::iterator &FIB, |

