summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-24 02:53:43 +0000
committerChris Lattner <sabre@nondot.org>2004-07-24 02:53:43 +0000
commitd7b9e293271c348f023cc4dd3c5a9f328fd263b2 (patch)
treef3d805535004bfe4fb7130721cc50e7507cd17b0
parent038747f5c034e2d67a23da07bb7b3d1428cdec8b (diff)
downloadbcm5719-llvm-d7b9e293271c348f023cc4dd3c5a9f328fd263b2.tar.gz
bcm5719-llvm-d7b9e293271c348f023cc4dd3c5a9f328fd263b2.zip
Add a new differingRegisterClasses method
make overlapsAliases take pointers instead of references fix indentation llvm-svn: 15153
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.h b/llvm/lib/CodeGen/LiveIntervalAnalysis.h
index b4228ce9b6c..c9db013d976 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.h
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.h
@@ -96,8 +96,8 @@ namespace llvm {
LiveInterval& getInterval(unsigned reg) {
Reg2IntervalMap::iterator I = r2iMap_.find(reg);
- assert(I != r2iMap_.end()&& "Interval does not exist for register");
- return *I->second;
+ assert(I != r2iMap_.end()&& "Interval does not exist for register");
+ return *I->second;
}
/// getInstructionIndex - returns the base index of instr
@@ -152,8 +152,12 @@ namespace llvm {
MachineBasicBlock::iterator mi,
LiveInterval& interval);
- bool overlapsAliases(const LiveInterval& lhs,
- const LiveInterval& rhs) const;
+ /// Return true if the two specified registers belong to different
+ /// register classes. The registers may be either phys or virt regs.
+ bool differingRegisterClasses(unsigned RegA, unsigned RegB) const;
+
+ bool overlapsAliases(const LiveInterval *lhs,
+ const LiveInterval *rhs) const;
LiveInterval& getOrCreateInterval(unsigned reg);
OpenPOWER on IntegriCloud