Skip to content

Commit 8b2ec78

Browse files
[ARM] Remove an unnecessary cast (NFC)
getSUnit() already returns SUnit *.
1 parent 523c006 commit 8b2ec78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6730,7 +6730,7 @@ bool ARMPipelinerLoopInfo::tooMuchRegisterPressure(SwingSchedulerDAG &SSD,
67306730
Register Reg = S.getReg();
67316731
auto CIter = CrossIterationNeeds.find(Reg.id());
67326732
if (CIter != CrossIterationNeeds.end()) {
6733-
auto Stg2 = SMS.stageScheduled(const_cast<SUnit *>(S.getSUnit()));
6733+
auto Stg2 = SMS.stageScheduled(S.getSUnit());
67346734
assert(Stg2 <= Stg && "Data dependence upon earlier stage");
67356735
if (Stg - Stg2 < MAX_STAGES)
67366736
CIter->second.set(Stg - Stg2);

0 commit comments

Comments
 (0)