summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-08-12 20:38:03 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-08-12 20:38:03 +0000
commitfff2c4726baa0d6c9cb184c815677e33c0357c93 (patch)
tree05274bc5fc575bd5f4a63eb1d14913416a44f43e /include
parent719510a178a910feb1db707140011c32a30992c4 (diff)
downloadllvm-fff2c4726baa0d6c9cb184c815677e33c0357c93.tar.gz
llvm-fff2c4726baa0d6c9cb184c815677e33c0357c93.tar.bz2
llvm-fff2c4726baa0d6c9cb184c815677e33c0357c93.tar.xz
Also recompute HasPHIKill flags in LiveInterval::RenumberValues.
If a phi-def value were removed from the interval, the phi-kill flags are no longer valid. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index ff1dbc2775..29e689a521 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -338,7 +338,8 @@ namespace llvm {
/// RenumberValues - Renumber all values in order of appearance and remove
/// unused values.
- void RenumberValues();
+ /// Recalculate phi-kill flags in case any phi-def values were removed.
+ void RenumberValues(LiveIntervals &lis);
/// isOnlyLROfValNo - Return true if the specified live range is the only
/// one defined by the its val#.