Skip to content

Commit

Permalink
[Tapir] Minor code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Jun 29, 2023
1 parent 6e54f46 commit a79982a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion llvm/include/llvm/Transforms/Tapir/TapirLoopInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TapirLoopInfo {
DescendantTasks.clear();
Inductions.clear();
}

Loop *getLoop() const { return TheLoop; }
Task *getTask() const { return TheTask; }

Expand Down
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/Tapir/AnalyzeTapir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ bool AnalyzeTapir::runOnFunction(Function &F) {

// Count number of discriminating syncs in this task.
unsigned NumDiscrimSyncs = 0;

for (const Spindle *S : T->spindles()) {
// Only conider spindles that might have tasks in parallel.
if (MPTasks.TaskList[S].empty()) continue;
Expand Down Expand Up @@ -199,7 +199,7 @@ bool AnalyzeTapir::runOnFunction(Function &F) {
// Walker->getClobberingMemoryAccess(MemAcc, MemoryLocation::get(Acc));
// dbgs() << "\tClobbering access " << *Clobber << "\n";
// }

return false;
}

Expand Down

0 comments on commit a79982a

Please sign in to comment.