diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-11-24 14:03:16 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-11-24 14:03:16 +0000 |
commit | 41580deaf19df795d3b3b8b486cd6b647ebd461b (patch) | |
tree | 3ecb2f11c04bef362fe63761f596a8c430eea7db /llvm/lib/Target/R600/SILowerControlFlow.cpp | |
parent | ea22c4cfbb04330578b7548066f743563c079c95 (diff) | |
download | llvm-41580deaf19df795d3b3b8b486cd6b647ebd461b.zip llvm-41580deaf19df795d3b3b8b486cd6b647ebd461b.tar.gz llvm-41580deaf19df795d3b3b8b486cd6b647ebd461b.tar.bz2 |
Removing a variable that is initialized but never read. The original author has been alerted to the warning, in case this variable is meant to be used. Fixes -Werror builds in the meantime.
llvm-svn: 222649
Diffstat (limited to 'llvm/lib/Target/R600/SILowerControlFlow.cpp')
-rw-r--r-- | llvm/lib/Target/R600/SILowerControlFlow.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/Target/R600/SILowerControlFlow.cpp b/llvm/lib/Target/R600/SILowerControlFlow.cpp index 20e8cec..aaf91ea 100644 --- a/llvm/lib/Target/R600/SILowerControlFlow.cpp +++ b/llvm/lib/Target/R600/SILowerControlFlow.cpp @@ -435,7 +435,6 @@ bool SILowerControlFlowPass::runOnMachineFunction(MachineFunction &MF) { SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>(); bool HaveKill = false; - bool NeedM0 = false; bool NeedWQM = false; bool NeedFlat = false; unsigned Depth = 0; @@ -449,15 +448,12 @@ bool SILowerControlFlowPass::runOnMachineFunction(MachineFunction &MF) { Next = std::next(I); MachineInstr &MI = *I; - if (TII->isDS(MI.getOpcode())) { + if (TII->isDS(MI.getOpcode())) NeedWQM = true; - } // Flat uses m0 in case it needs to access LDS. - if (TII->isFLAT(MI.getOpcode())) { - NeedM0 = true; + if (TII->isFLAT(MI.getOpcode())) NeedFlat = true; - } switch (MI.getOpcode()) { default: break; |