[AMDGPU] Return correct value from SDWA pass

Differential Revision: https://reviews.llvm.org/D33927

llvm-svn: 304805
This commit is contained in:
Stanislav Mekhanoshin 2017-06-06 16:42:30 +00:00
parent 6dc65e9105
commit e4cda7417c
1 changed files with 2 additions and 1 deletions

View File

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