[llvm] r228635 - Fix the clang -Werror build (-Wunused-variable)

David Blaikie dblaikie at gmail.com
Mon Feb 9 16:16:36 PST 2015


Author: dblaikie
Date: Mon Feb  9 18:16:36 2015
New Revision: 228635

URL: http://llvm.org/viewvc/llvm-project?rev=228635&view=rev
Log:
Fix the clang -Werror build (-Wunused-variable)

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp?rev=228635&r1=228634&r2=228635&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp Mon Feb  9 18:16:36 2015
@@ -998,7 +998,6 @@ bool HexagonInstrInfo::isPredicatedNew(u
 
 // Returns true, if a ST insn can be promoted to a new-value store.
 bool HexagonInstrInfo::mayBeNewStore(const MachineInstr *MI) const {
-  const HexagonRegisterInfo& QRI = getRegisterInfo();
   const uint64_t F = MI->getDesc().TSFlags;
 
   return ((F >> HexagonII::mayNVStorePos) &
@@ -1313,7 +1312,6 @@ bool HexagonInstrInfo::isConditionalALU3
 
 bool HexagonInstrInfo::
 isConditionalLoad (const MachineInstr* MI) const {
-  const HexagonRegisterInfo& QRI = getRegisterInfo();
   switch (MI->getOpcode())
   {
     default: return false;
@@ -1393,7 +1391,6 @@ isConditionalLoad (const MachineInstr* M
 // is not valid for new-value stores.
 bool HexagonInstrInfo::
 isConditionalStore (const MachineInstr* MI) const {
-  const HexagonRegisterInfo& QRI = getRegisterInfo();
   switch (MI->getOpcode())
   {
     default: return false;





More information about the llvm-commits mailing list