diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-05-13 13:13:59 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-05-13 13:13:59 +0000 |
| commit | a0ea73c9af86c6d72bb9fe7826027841b93e682d (patch) | |
| tree | d5f4bc27c72a0e9ebbb4b65a87c9617a49cd49d1 /llvm/lib | |
| parent | b78c008c4560a8055d0ebeafc4ce32caa3667c48 (diff) | |
| download | bcm5719-llvm-a0ea73c9af86c6d72bb9fe7826027841b93e682d.tar.gz bcm5719-llvm-a0ea73c9af86c6d72bb9fe7826027841b93e682d.zip | |
[scan-build] fix dead store warnings emitted on LLVM Hexagon code base
Patch by Apelete Seketeli.
Differential Revision: http://reviews.llvm.org/D19900
llvm-svn: 269415
Diffstat (limited to 'llvm/lib')
4 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp b/llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp index c087b72b01f..b612b11aed5 100644 --- a/llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp +++ b/llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp @@ -212,7 +212,6 @@ namespace { if (Comma) OS << ','; OS << "used"; - Comma = true; } OS << "} "; if (GN.Flags & GepNode::Root) diff --git a/llvm/lib/Target/Hexagon/HexagonFixupHwLoops.cpp b/llvm/lib/Target/Hexagon/HexagonFixupHwLoops.cpp index e6037c6f807..e86019ee493 100644 --- a/llvm/lib/Target/Hexagon/HexagonFixupHwLoops.cpp +++ b/llvm/lib/Target/Hexagon/HexagonFixupHwLoops.cpp @@ -130,7 +130,6 @@ bool HexagonFixupHwLoops::fixupLoopInstrs(MachineFunction &MF) { // Second pass - check each loop instruction to see if it needs to be // converted. - InstOffset = 0; bool Changed = false; for (MachineBasicBlock &MBB : MF) { InstOffset = BlockToInstOffset[&MBB]; diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp index 7b3c016b3ac..dd4da9ed870 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonInstPrinter.cpp @@ -79,7 +79,6 @@ void HexagonInstPrinter::printInst(const MCInst *MI, raw_ostream &OS, } if (HexagonMCInstrInfo::isOuterLoop(*MI)) { OS << Separator; - Separator = " "; MCInst ME; ME.setOpcode(Hexagon::ENDLOOP1); printInstruction(&ME, OS); diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCShuffler.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCShuffler.cpp index 8e70280c1a0..7f8e7a4edb0 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCShuffler.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCShuffler.cpp @@ -180,7 +180,6 @@ llvm::HexagonMCShuffle(MCInstrInfo const &MCII, MCSubtargetInfo const &STI, if (MCS.size() == 1) { // case of one duplex // copy the created duplex in the shuffler to the bundle MCS.copyTo(MCB); - doneShuffling = true; return HexagonShuffler::SHUFFLE_SUCCESS; } // try shuffle with this duplex |

