Skip to content

Commit 6853597

Browse files
[Delinearization] Fix unused variable from 5cdb757
Was only unused in an expression enabled at debug time.
1 parent a0e7476 commit 6853597

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Analysis/DependenceAnalysis.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,9 +3277,6 @@ bool DependenceInfo::tryDelinearizeFixedSize(
32773277
"Expected equal number of entries in the list of SrcSubscripts and "
32783278
"DstSubscripts.");
32793279

3280-
Value *SrcPtr = getLoadStorePointerOperand(Src);
3281-
Value *DstPtr = getLoadStorePointerOperand(Dst);
3282-
32833280
// In general we cannot safely assume that the subscripts recovered from GEPs
32843281
// are in the range of values defined for their corresponding array
32853282
// dimensions. For example some C language usage/interpretation make it
@@ -3296,8 +3293,8 @@ bool DependenceInfo::tryDelinearizeFixedSize(
32963293
}
32973294
LLVM_DEBUG({
32983295
dbgs() << "Delinearized subscripts of fixed-size array\n"
3299-
<< "SrcGEP:" << *SrcPtr << "\n"
3300-
<< "DstGEP:" << *DstPtr << "\n";
3296+
<< "SrcGEP:" << *getLoadStorePointerOperand(Src) << "\n"
3297+
<< "DstGEP:" << *getLoadStorePointerOperand(Dst) << "\n";
33013298
});
33023299
return true;
33033300
}

0 commit comments

Comments
 (0)