[PATCH] D33927: [AMDGPU] Return correct value from SDWA pass

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 09:43:01 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL304805: [AMDGPU] Return correct value from SDWA pass (authored by rampitec).

Changed prior to commit:
  https://reviews.llvm.org/D33927?vs=101513&id=101582#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33927

Files:
  llvm/trunk/lib/Target/AMDGPU/SIPeepholeSDWA.cpp


Index: llvm/trunk/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
+++ llvm/trunk/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
@@ -786,8 +786,9 @@
   PotentialMatches.clear();
   SDWAOperands.clear();
 
+  bool Ret = !ConvertedInstructions.empty();
   while (!ConvertedInstructions.empty())
     legalizeScalarOperands(*ConvertedInstructions.pop_back_val());
 
-  return false;
+  return Ret;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33927.101582.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170606/9d28ecc6/attachment.bin>


More information about the llvm-commits mailing list