Skip to content

Commit a4a69bf

Browse files
committed
[AMDGPU] Update comments.
1 parent ceee25d commit a4a69bf

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -467,18 +467,6 @@ static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca,
467467
// map.
468468
// Only a single pointer variable is allowed in the entire GEP chain.
469469
// If VarOffsets already holds a different pointer, abort.
470-
//
471-
// Example:
472-
// 1) First GEP picks the idx’th element (each element is 8 bytes):
473-
// addr0 = base + idx * 8
474-
//
475-
// 2) Second GEP adds a fixed 4‐byte shift:
476-
// addr1 = addr0 + 4
477-
//
478-
// To turn that into a 4‐byte “lane” index we divide by 4:
479-
// lane = (idx * 8 + 4) / 4
480-
// = idx * (8 / 4) + (4 / 4)
481-
// = idx * 2 + 1
482470
for (auto &VarEntry : LocalVarsOffsets) {
483471
// If VarOffsets already records a different pointer, abort.
484472
if (!VarOffsets.empty() && !VarOffsets.contains(VarEntry.first))

0 commit comments

Comments
 (0)