Skip to content

Commit 95c35e6

Browse files
kazutakahiratarlavaee
authored andcommitted
[GlobalISel] Remove an unnecessary cast (NFC) (llvm#146249)
Idx is already of unsigned.
1 parent 410f408 commit 95c35e6

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)