[PATCH] D19833: [scan-build] fix dead store warnings emitted on LLVM AMDGPU code base
Apelete Seketeli via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 13:44:17 PDT 2016
apelete created this revision.
apelete added a reviewer: tstellarAMD.
apelete added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.
his fixes dead store warnings of the type "dead assignment" reported
by Clang Static Analyzer on the following file:
- lib/Target/AMDGPU/SIISelLowering.cpp.
Signed-off-by: Apelete Seketeli <apelete at seketeli.net>
http://reviews.llvm.org/D19833
Files:
lib/Target/AMDGPU/SIISelLowering.cpp
Index: lib/Target/AMDGPU/SIISelLowering.cpp
===================================================================
--- lib/Target/AMDGPU/SIISelLowering.cpp
+++ lib/Target/AMDGPU/SIISelLowering.cpp
@@ -1373,7 +1373,6 @@
};
SDValue NewBR = DAG.getNode(ISD::BR, DL, BR->getVTList(), Ops);
DAG.ReplaceAllUsesWith(BR, NewBR.getNode());
- BR = NewBR.getNode();
}
SDValue Chain = SDValue(Result, Result->getNumValues() - 1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19833.55890.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160502/abe9fc77/attachment.bin>
More information about the llvm-commits
mailing list