Rename inst_range() to instructions() for consistency. NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nico Rieck
2015-08-06 19:10:45 +00:00
parent 1c618a4dd4
commit 3dd7bf5e76
13 changed files with 28 additions and 26 deletions
+3 -3
View File
@@ -159,7 +159,7 @@ private:
void DivergencePropagator::populateWithSourcesOfDivergence() {
Worklist.clear();
DV.clear();
for (auto &I : inst_range(F)) {
for (auto &I : instructions(F)) {
if (TTI.isSourceOfDivergence(&I)) {
Worklist.push_back(&I);
DV.insert(&I);
@@ -329,8 +329,8 @@ void DivergenceAnalysis::print(raw_ostream &OS, const Module *) const {
if (DivergentValues.count(&Arg))
OS << "DIVERGENT: " << Arg << "\n";
}
// Iterate instructions using inst_range to ensure a deterministic order.
for (auto &I : inst_range(F)) {
// Iterate instructions using instructions() to ensure a deterministic order.
for (auto &I : instructions(F)) {
if (DivergentValues.count(&I))
OS << "DIVERGENT:" << I << "\n";
}