diff options
Diffstat (limited to 'contrib/llvm/lib/Target/WebAssembly/WebAssemblyOptimizeLiveIntervals.cpp')
| -rw-r--r-- | contrib/llvm/lib/Target/WebAssembly/WebAssemblyOptimizeLiveIntervals.cpp | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/contrib/llvm/lib/Target/WebAssembly/WebAssemblyOptimizeLiveIntervals.cpp b/contrib/llvm/lib/Target/WebAssembly/WebAssemblyOptimizeLiveIntervals.cpp index ebe97848d461..04ac22a589ea 100644 --- a/contrib/llvm/lib/Target/WebAssembly/WebAssemblyOptimizeLiveIntervals.cpp +++ b/contrib/llvm/lib/Target/WebAssembly/WebAssemblyOptimizeLiveIntervals.cpp @@ -8,11 +8,11 @@  //===----------------------------------------------------------------------===//  ///  /// \file -/// \brief Optimize LiveIntervals for use in a post-RA context. +/// Optimize LiveIntervals for use in a post-RA context.  //  /// LiveIntervals normally runs before register allocation when the code is  /// only recently lowered out of SSA form, so it's uncommon for registers to -/// have multiple defs, and then they do, the defs are usually closely related. +/// have multiple defs, and when they do, the defs are usually closely related.  /// Later, after coalescing, tail duplication, and other optimizations, it's  /// more common to see registers with multiple unrelated defs. This pass  /// updates LiveIntervals to distribute the value numbers across separate @@ -58,14 +58,17 @@ public:  } // end anonymous namespace  char WebAssemblyOptimizeLiveIntervals::ID = 0; +INITIALIZE_PASS(WebAssemblyOptimizeLiveIntervals, DEBUG_TYPE, +                "Optimize LiveIntervals for WebAssembly", false, false) +  FunctionPass *llvm::createWebAssemblyOptimizeLiveIntervals() {    return new WebAssemblyOptimizeLiveIntervals();  }  bool WebAssemblyOptimizeLiveIntervals::runOnMachineFunction(MachineFunction &MF) { -  DEBUG(dbgs() << "********** Optimize LiveIntervals **********\n" -                  "********** Function: " -               << MF.getName() << '\n'); +  LLVM_DEBUG(dbgs() << "********** Optimize LiveIntervals **********\n" +                       "********** Function: " +                    << MF.getName() << '\n');    MachineRegisterInfo &MRI = MF.getRegInfo();    LiveIntervals &LIS = getAnalysis<LiveIntervals>();  | 
