Skip to content

Commit 03c44c7

Browse files
committed
[NFC] Deduplicate comment in PromoteMemoryToRegister.cpp
This has been duplicated since before 2372a19, but that commit has it appearing twice in the space of 10 lines of the same function body. It could also be hoisted up to the point just after where the last special-case is considered, but I want to keep the intent of the original authors. Committed as obvious without a review.
1 parent 40af481 commit 03c44c7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -595,11 +595,6 @@ void PromoteMem2Reg::run() {
595595
// Keep the reverse mapping of the 'Allocas' array for the rename pass.
596596
AllocaLookup[Allocas[AllocaNum]] = AllocaNum;
597597

598-
// At this point, we're committed to promoting the alloca using IDF's, and
599-
// the standard SSA construction algorithm. Determine which blocks need PHI
600-
// nodes and see if we can optimize out some work by avoiding insertion of
601-
// dead phi nodes.
602-
603598
// Unique the set of defining blocks for efficient lookup.
604599
SmallPtrSet<BasicBlock *, 32> DefBlocks(Info.DefiningBlocks.begin(),
605600
Info.DefiningBlocks.end());

0 commit comments

Comments
 (0)