From 63db6690134a7b64e3d2e9f584c6417539e2ebe3 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 17 Feb 2018 13:48:23 +0000 Subject: [PATCH] Fix unused variable warning. NFCI. We were casting to AArch64InstrInfo but only using it for static methods which some compilers complain about. llvm-svn: 325432 --- llvm/lib/Target/AArch64/AArch64MacroFusion.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/AArch64/AArch64MacroFusion.cpp b/llvm/lib/Target/AArch64/AArch64MacroFusion.cpp index 2f58306..9cee085 100644 --- a/llvm/lib/Target/AArch64/AArch64MacroFusion.cpp +++ b/llvm/lib/Target/AArch64/AArch64MacroFusion.cpp @@ -27,7 +27,6 @@ static bool shouldScheduleAdjacent(const TargetInstrInfo &TII, const TargetSubtargetInfo &TSI, const MachineInstr *FirstMI, const MachineInstr &SecondMI) { - const AArch64InstrInfo &II = static_cast(TII); const AArch64Subtarget &ST = static_cast(TSI); // Assume wildcards for unspecified instrs. @@ -66,7 +65,7 @@ static bool shouldScheduleAdjacent(const TargetInstrInfo &TII, case AArch64::BICSWrs: case AArch64::BICSXrs: // Shift value can be 0 making these behave like the "rr" variant... - return !II.hasShiftedReg(*FirstMI); + return !AArch64InstrInfo::hasShiftedReg(*FirstMI); case AArch64::INSTRUCTION_LIST_END: return true; } @@ -108,7 +107,7 @@ static bool shouldScheduleAdjacent(const TargetInstrInfo &TII, case AArch64::BICWrs: case AArch64::BICXrs: // Shift value can be 0 making these behave like the "rr" variant... - return !II.hasShiftedReg(*FirstMI); + return !AArch64InstrInfo::hasShiftedReg(*FirstMI); case AArch64::INSTRUCTION_LIST_END: return true; } -- 2.7.4