Skip to content

Commit eca6f8a

Browse files
[AArch64] Remove unnecessary casts (NFC) (#148339)
getInstrInfo() already returns const AArch64InstrInfo *.
1 parent 78c12d3 commit eca6f8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/lib/Target/AArch64/AArch64FalkorHWPFFix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ bool FalkorHWPFFix::runOnMachineFunction(MachineFunction &Fn) {
812812
if (skipFunction(Fn.getFunction()))
813813
return false;
814814

815-
TII = static_cast<const AArch64InstrInfo *>(ST.getInstrInfo());
815+
TII = ST.getInstrInfo();
816816
TRI = ST.getRegisterInfo();
817817

818818
MachineLoopInfo &LI = getAnalysis<MachineLoopInfoWrapperPass>().getLI();

llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3078,7 +3078,7 @@ bool AArch64LoadStoreOpt::runOnMachineFunction(MachineFunction &Fn) {
30783078
return false;
30793079

30803080
Subtarget = &Fn.getSubtarget<AArch64Subtarget>();
3081-
TII = static_cast<const AArch64InstrInfo *>(Subtarget->getInstrInfo());
3081+
TII = Subtarget->getInstrInfo();
30823082
TRI = Subtarget->getRegisterInfo();
30833083
AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
30843084

llvm/lib/Target/AArch64/AArch64StorePairSuppress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ bool AArch64StorePairSuppress::runOnMachineFunction(MachineFunction &MF) {
133133
if (!ST.enableStorePairSuppress())
134134
return false;
135135

136-
TII = static_cast<const AArch64InstrInfo *>(ST.getInstrInfo());
136+
TII = ST.getInstrInfo();
137137
TRI = ST.getRegisterInfo();
138138
MRI = &MF.getRegInfo();
139139
SchedModel.init(&ST);

0 commit comments

Comments
 (0)