Skip to content

Commit 0d0daef

Browse files
[GlobalISel] Remove an unnecessary cast (NFC) (#146249)
Idx is already of unsigned.
1 parent 68d83fa commit 0d0daef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/GlobalISel/LoadStoreOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ bool LoadStoreOpt::processMergeCandidate(StoreMergeCandidate &C) {
458458
for (auto AliasInfo : reverse(C.PotentialAliases)) {
459459
MachineInstr *PotentialAliasOp = AliasInfo.first;
460460
unsigned PreCheckedIdx = AliasInfo.second;
461-
if (static_cast<unsigned>(Idx) < PreCheckedIdx) {
461+
if (Idx < PreCheckedIdx) {
462462
// Once our store index is lower than the index associated with the
463463
// potential alias, we know that we've already checked for this alias
464464
// and all of the earlier potential aliases too.

0 commit comments

Comments
 (0)