We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 811b9fd commit f041a9eCopy full SHA for f041a9e
llvm/include/llvm/CodeGen/LiveInterval.h
@@ -271,6 +271,17 @@ namespace llvm {
271
I = std::lower_bound(kills.begin(), kills.end(), KillIdx);
272
return I != kills.end() && *I == KillIdx;
273
}
274
+
275
+ /// isOnlyLROfValNo - Return true if the specified live range is the only
276
+ /// one defined by the its val#.
277
+ bool isOnlyLROfValNo( const LiveRange *LR) {
278
+ for (const_iterator I = begin(), E = end(); I != E; ++I) {
279
+ const LiveRange *Tmp = I;
280
+ if (Tmp != LR && Tmp->valno == LR->valno)
281
+ return false;
282
+ }
283
+ return true;
284
285
286
/// MergeValueNumberInto - This method is called when two value nubmers
287
/// are found to be equivalent. This eliminates V1, replacing all
0 commit comments