From: Simon Pilgrim Date: Sat, 17 Feb 2018 13:48:23 +0000 (+0000) Subject: Fix unused variable warning. NFCI. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63db6690134a7b64e3d2e9f584c6417539e2ebe3;p=platform%2Fupstream%2Fllvm.git 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 --- 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; }