Skip to content

Commit 0d0d3e1

Browse files
committed
Running clang format
1 parent f7084ce commit 0d0d3e1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

llvm/lib/CodeGen/MachinePipeliner.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -485,14 +485,11 @@ void MachinePipeliner::setPragmaPipelineOptions(MachineLoop &L) {
485485
}
486486
}
487487

488-
489488
/// Depth-first search to detect cycles among PHI dependencies.
490489
/// Returns true if a cycle is detected within the PHI-only subgraph.
491490
static bool hasPHICycleDFS(
492-
unsigned Reg,
493-
const DenseMap<unsigned, SmallVector<unsigned, 2>> &PhiDeps,
494-
SmallSet<unsigned, 8> &Visited,
495-
SmallSet<unsigned, 8> &RecStack) {
491+
unsigned Reg, const DenseMap<unsigned, SmallVector<unsigned, 2>> &PhiDeps,
492+
SmallSet<unsigned, 8> &Visited, SmallSet<unsigned, 8> &RecStack) {
496493

497494
// If Reg is not a PHI-def it cannot contribute to a PHI cycle.
498495
auto It = PhiDeps.find(Reg);
@@ -516,7 +513,6 @@ static bool hasPHICycleDFS(
516513
return false;
517514
}
518515

519-
520516
static bool hasPHICycle(const MachineBasicBlock *LoopHeader,
521517
const MachineRegisterInfo &MRI) {
522518
DenseMap<unsigned, SmallVector<unsigned, 2>> PhiDeps;

0 commit comments

Comments
 (0)