[PATCH] D69863: [AMDGPU] Removed dead code from R600ISelLowering.cpp

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 12:11:08 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf2e7679d0f0b: [AMDGPU] Removed dead code from R600ISelLowering.cpp (authored by rampitec).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69863/new/

https://reviews.llvm.org/D69863

Files:
  llvm/lib/Target/AMDGPU/R600ISelLowering.cpp


Index: llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
+++ llvm/lib/Target/AMDGPU/R600ISelLowering.cpp
@@ -1715,12 +1715,7 @@
 
     if (NewBldVec[i].isUndef())
       continue;
-    // Fix spurious warning with gcc 7.3 -O3
-    //    warning: array subscript is above array bounds [-Warray-bounds]
-    //    if (NewBldVec[i] == NewBldVec[j]) {
-    //        ~~~~~~~~~~~^
-    if (i >= 4)
-      continue;
+
     for (unsigned j = 0; j < i; j++) {
       if (NewBldVec[i] == NewBldVec[j]) {
         NewBldVec[i] = DAG.getUNDEF(NewBldVec[i].getValueType());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69863.227946.patch
Type: text/x-patch
Size: 672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191105/5705c81e/attachment.bin>


More information about the llvm-commits mailing list