mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Merge from mainline. Complete 64076 merge from mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64861 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
41b57f5044
commit
b0ba5215f6
1 file changed
+11
@@ -271,6 +271,17 @@ namespace llvm {
|
||||
I = std::lower_bound(kills.begin(), kills.end(), KillIdx);
|
||||
return I != kills.end() && *I == KillIdx;
|
||||
}
|
||||
|
||||
/// isOnlyLROfValNo - Return true if the specified live range is the only
|
||||
/// one defined by the its val#.
|
||||
bool isOnlyLROfValNo( const LiveRange *LR) {
|
||||
for (const_iterator I = begin(), E = end(); I != E; ++I) {
|
||||
const LiveRange *Tmp = I;
|
||||
if (Tmp != LR && Tmp->valno == LR->valno)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/// MergeValueNumberInto - This method is called when two value nubmers
|
||||
/// are found to be equivalent. This eliminates V1, replacing all
|
||||
|
||||
Reference in new issue
Block a user