[llvm] b4c0d61 - [AMDGPU] Fix build breakage

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 14 09:03:06 PST 2021


Author: Kazu Hirata
Date: 2021-02-14T09:02:55-08:00
New Revision: b4c0d610a66087aa332e256daabdec6460e5ef21

URL: https://github.com/llvm/llvm-project/commit/b4c0d610a66087aa332e256daabdec6460e5ef21
DIFF: https://github.com/llvm/llvm-project/commit/b4c0d610a66087aa332e256daabdec6460e5ef21.diff

LOG: [AMDGPU] Fix build breakage

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
index 4a9d5cded732..697513b5db7a 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
@@ -1419,7 +1419,7 @@ void AMDGPUMachineCFGStructurizer::extractKilledPHIs(MachineBasicBlock *MBB) {
 
 static bool isPHIRegionIndex(SmallVector<unsigned, 2> PHIRegionIndices,
                              unsigned Index) {
-  llvm::is_contained(PHIRegionIndices, Index);
+  return llvm::is_contained(PHIRegionIndices, Index);
 }
 
 bool AMDGPUMachineCFGStructurizer::shrinkPHI(MachineInstr &PHI,


        


More information about the llvm-commits mailing list