[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
Thu May 12 16:18:57 PDT 2016


apelete updated this revision to Diff 57115.
apelete added a comment.
Herald added a subscriber: kzhuravl.

[scan-build] fix dead store warnings emitted on LLVM AMDGPU code base

Changes since last revision:

- rebased patch on trunk and validated against test suite.


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
@@ -1388,7 +1388,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.57115.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160512/098f373c/attachment.bin>


More information about the llvm-commits mailing list