diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2015-12-29 18:14:06 +0000 | 
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2015-12-29 18:14:06 +0000 | 
| commit | 59309cc090a01866bc1ed920e8ef2129a2ef2a57 (patch) | |
| tree | 5cf899ebc298092312c1751354369bb1868b6af7 /llvm/lib/CodeGen | |
| parent | 43dc285915f571e7a1e22a15468676006125bc9c (diff) | |
| download | bcm5719-llvm-59309cc090a01866bc1ed920e8ef2129a2ef2a57.tar.gz bcm5719-llvm-59309cc090a01866bc1ed920e8ef2129a2ef2a57.zip | |
don't repeat function names in comments; NFC
llvm-svn: 256569
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/PeepholeOptimizer.cpp | 27 | 
1 files changed, 13 insertions, 14 deletions
| diff --git a/llvm/lib/CodeGen/PeepholeOptimizer.cpp b/llvm/lib/CodeGen/PeepholeOptimizer.cpp index f861edf7da2..d3ada914673 100644 --- a/llvm/lib/CodeGen/PeepholeOptimizer.cpp +++ b/llvm/lib/CodeGen/PeepholeOptimizer.cpp @@ -400,11 +400,10 @@ INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree)  INITIALIZE_PASS_END(PeepholeOptimizer, "peephole-opts",                  "Peephole Optimizations", false, false) -/// optimizeExtInstr - If instruction is a copy-like instruction, i.e. it reads -/// a single register and writes a single register and it does not modify the -/// source, and if the source value is preserved as a sub-register of the -/// result, then replace all reachable uses of the source with the subreg of the -/// result. +/// If instruction is a copy-like instruction, i.e. it reads a single register +/// and writes a single register and it does not modify the source, and if the +/// source value is preserved as a sub-register of the result, then replace all +/// reachable uses of the source with the subreg of the result.  ///  /// Do not generate an EXTRACT that is used only in a debug use, as this changes  /// the code. Since this code does not currently share EXTRACTs, just ignore all @@ -555,10 +554,10 @@ optimizeExtInstr(MachineInstr *MI, MachineBasicBlock *MBB,    return Changed;  } -/// optimizeCmpInstr - If the instruction is a compare and the previous -/// instruction it's comparing against all ready sets (or could be modified to -/// set) the same flag as the compare, then we can remove the comparison and use -/// the flag from the previous instruction. +/// If the instruction is a compare and the previous instruction it's comparing +/// against already sets (or could be modified to set) the same flag as the +/// compare, then we can remove the comparison and use the flag from the +/// previous instruction.  bool PeepholeOptimizer::optimizeCmpInstr(MachineInstr *MI,                                           MachineBasicBlock *MBB) {    // If this instruction is a comparison against zero and isn't comparing a @@ -1290,9 +1289,9 @@ bool PeepholeOptimizer::optimizeUncoalescableCopy(    return true;  } -/// isLoadFoldable - Check whether MI is a candidate for folding into a later -/// instruction. We only fold loads to virtual registers and the virtual -/// register defined has a single use. +/// Check whether MI is a candidate for folding into a later instruction. +/// We only fold loads to virtual registers and the virtual register defined +/// has a single use.  bool PeepholeOptimizer::isLoadFoldable(                                MachineInstr *MI,                                SmallSet<unsigned, 16> &FoldAsLoadDefCandidates) { @@ -1333,8 +1332,8 @@ bool PeepholeOptimizer::isMoveImmediate(MachineInstr *MI,    return false;  } -/// foldImmediate - Try folding register operands that are defined by move -/// immediate instructions, i.e. a trivial constant folding optimization, if +/// Try folding register operands that are defined by move immediate +/// instructions, i.e. a trivial constant folding optimization, if  /// and only if the def and use are in the same BB.  bool PeepholeOptimizer::foldImmediate(MachineInstr *MI, MachineBasicBlock *MBB,                                        SmallSet<unsigned, 4> &ImmDefRegs, | 

