[llvm-commits] [regalloc_linearscan] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp LiveIntervals.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Oct 24 10:58:01 PDT 2003
Changes in directory llvm/lib/CodeGen:
RegAllocLinearScan.cpp updated: 1.1.2.5 -> 1.1.2.6
LiveIntervals.cpp updated: 1.1.2.1 -> 1.1.2.2
---
Log message:
Comment fixes.
---
Diffs of the changes: (+7 -5)
Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.5 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.6
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.1.2.5 Fri Oct 24 10:50:04 2003
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Fri Oct 24 10:57:32 2003
@@ -5,7 +5,8 @@
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
-//===----------------------------------------------------------------------===////
+//===----------------------------------------------------------------------===//
+//
// This file implements a linear scan register allocator.
//
//===----------------------------------------------------------------------===//
Index: llvm/lib/CodeGen/LiveIntervals.cpp
diff -u llvm/lib/CodeGen/LiveIntervals.cpp:1.1.2.1 llvm/lib/CodeGen/LiveIntervals.cpp:1.1.2.2
--- llvm/lib/CodeGen/LiveIntervals.cpp:1.1.2.1 Fri Oct 24 01:06:47 2003
+++ llvm/lib/CodeGen/LiveIntervals.cpp Fri Oct 24 10:57:33 2003
@@ -1,11 +1,11 @@
-//===-- LiveIntervals.cpp - Linear Scan register allocator --------------===//
+//===-- LiveIntervals.cpp - Live Interval Analysis ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
//
// This file implements the LiveInterval analysis pass which is used
// by the Linear Scan Register allocator. This pass linearizes the
@@ -13,7 +13,7 @@
// LiveVariables pass to conservatively compute live intervals for
// each virtual and physical register.
//
-//===--------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "liveintervals"
#include "llvm/CodeGen/LiveIntervals.h"
@@ -43,8 +43,9 @@
void LiveIntervals::getAnalysisUsage(AnalysisUsage &AU) const
{
- AU.setPreservesAll();
+ AU.addPreserved<LiveVariables>();
AU.addRequired<LiveVariables>();
+ AU.addRequiredID(PHIEliminationID);
MachineFunctionPass::getAnalysisUsage(AU);
}
More information about the llvm-commits
mailing list