From: Stanislav Mekhanoshin Date: Tue, 6 Jun 2017 16:42:30 +0000 (+0000) Subject: [AMDGPU] Return correct value from SDWA pass X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b43bddd6d9c4490144c38d9b4bef3b68ccb3fe7;p=llvm [AMDGPU] Return correct value from SDWA pass Differential Revision: https://reviews.llvm.org/D33927 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304805 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/SIPeepholeSDWA.cpp b/lib/Target/AMDGPU/SIPeepholeSDWA.cpp index c4a17f5ad25..f4ddf189168 100644 --- a/lib/Target/AMDGPU/SIPeepholeSDWA.cpp +++ b/lib/Target/AMDGPU/SIPeepholeSDWA.cpp @@ -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; }