]> granicus.if.org Git - llvm/commitdiff
[AMDGPU] Return correct value from SDWA pass
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 6 Jun 2017 16:42:30 +0000 (16:42 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 6 Jun 2017 16:42:30 +0000 (16:42 +0000)
Differential Revision: https://reviews.llvm.org/D33927

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304805 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/SIPeepholeSDWA.cpp

index c4a17f5ad255bf752cd21011e54e28123c99f378..f4ddf1891683bde512ca99f5b05ee0640dfb67b3 100644 (file)
@@ -786,8 +786,9 @@ bool SIPeepholeSDWA::runOnMachineFunction(MachineFunction &MF) {
   PotentialMatches.clear();
   SDWAOperands.clear();
 
+  bool Ret = !ConvertedInstructions.empty();
   while (!ConvertedInstructions.empty())
     legalizeScalarOperands(*ConvertedInstructions.pop_back_val());
 
-  return false;
+  return Ret;
 }