aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-03-31 18:58:14 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-03-31 18:58:14 +0000
commit1f818610285249f94626d53ebf54e9bf7cf65f5b (patch)
tree4eceb9d10d75ea9495e6a2b70a1d4bc620fcdfc7
parentfa79e6e869264f6bf8b134302e4218f08f1f0ced (diff)
Add method clearCallInterference().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2071 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/RegAlloc/LiveRange.h3
-rw-r--r--lib/Target/SparcV9/RegAlloc/LiveRange.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAlloc/LiveRange.h b/lib/CodeGen/RegAlloc/LiveRange.h
index 5f3e41bd15..994824b214 100644
--- a/lib/CodeGen/RegAlloc/LiveRange.h
+++ b/lib/CodeGen/RegAlloc/LiveRange.h
@@ -92,6 +92,9 @@ public:
inline void setCallInterference() {
doesSpanAcrossCalls = 1;
}
+ inline void clearCallInterference() {
+ doesSpanAcrossCalls = 0;
+ }
inline bool isCallInterference() const {
return doesSpanAcrossCalls == 1;
diff --git a/lib/Target/SparcV9/RegAlloc/LiveRange.h b/lib/Target/SparcV9/RegAlloc/LiveRange.h
index 5f3e41bd15..994824b214 100644
--- a/lib/Target/SparcV9/RegAlloc/LiveRange.h
+++ b/lib/Target/SparcV9/RegAlloc/LiveRange.h
@@ -92,6 +92,9 @@ public:
inline void setCallInterference() {
doesSpanAcrossCalls = 1;
}
+ inline void clearCallInterference() {
+ doesSpanAcrossCalls = 0;
+ }
inline bool isCallInterference() const {
return doesSpanAcrossCalls == 1;