Lines Matching refs:RS
33 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource() local
35 RS.sample(nullptr, /*Weight=*/1); in findOrCreateSource()
36 if (Instruction *Src = RS.getSelection()) in findOrCreateSource()
44 auto RS = makeSampler<Value *>(Rand); in newSource() local
45 RS.sample(Pred.generate(Srcs, KnownTypes)); in newSource()
58 ? RS.getSelection()->getType() in newSource()
64 RS.sample(NewLoad, RS.totalWeight()); in newSource()
69 assert(!RS.isEmpty() && "Failed to generate sources"); in newSource()
70 return RS.getSelection(); in newSource()
100 auto RS = makeSampler<Use *>(Rand); in connectToSink() local
109 RS.sample(&U, 1); in connectToSink()
112 RS.sample(nullptr, /*Weight=*/1); in connectToSink()
114 if (Use *Sink = RS.getSelection()) { in connectToSink()
159 if (auto RS = makeSampler(Rand, make_filter_range(Insts, IsMatchingPtr))) in findPointer() local
160 return RS.getSelection(); in findPointer()