[llvm] r345518 - [AMDGPU] Fixed return value causing warning and regression

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 29 10:53:24 PDT 2018


Author: rampitec
Date: Mon Oct 29 10:53:23 2018
New Revision: 345518

URL: http://llvm.org/viewvc/llvm-project?rev=345518&view=rev
Log:
[AMDGPU] Fixed return value causing warning and regression

Modified:
    llvm/trunk/lib/Target/AMDGPU/SIShrinkInstructions.cpp

Modified: llvm/trunk/lib/Target/AMDGPU/SIShrinkInstructions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIShrinkInstructions.cpp?rev=345518&r1=345517&r2=345518&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIShrinkInstructions.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIShrinkInstructions.cpp Mon Oct 29 10:53:23 2018
@@ -299,7 +299,7 @@ static MachineInstr* matchSwap(MachineIn
 
   const SIRegisterInfo &TRI = TII->getRegisterInfo();
   if (!TRI.isVGPR(MRI, X))
-    return false;
+    return nullptr;
 
   for (MachineOperand &YTop : MRI.use_nodbg_operands(T)) {
     if (YTop.getSubReg() != Tsub)




More information about the llvm-commits mailing list