[llvm] r310007 - AMDGPU: Remove pointless asserts

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 17:00:13 PDT 2017


Author: arsenm
Date: Thu Aug  3 17:00:13 2017
New Revision: 310007

URL: http://llvm.org/viewvc/llvm-project?rev=310007&view=rev
Log:
AMDGPU: Remove pointless asserts

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

Modified: llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp?rev=310007&r1=310006&r2=310007&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Thu Aug  3 17:00:13 2017
@@ -1079,7 +1079,6 @@ static void allocateSpecialEntryInputVGP
   if (Info.hasWorkItemIDX()) {
     unsigned Reg = AMDGPU::VGPR0;
     MF.addLiveIn(Reg, &AMDGPU::VGPR_32RegClass);
-    assert(Reg == AMDGPU::VGPR0);
 
     CCInfo.AllocateReg(Reg);
     Info.setWorkItemIDX(ArgDescriptor::createRegister(Reg));
@@ -1089,7 +1088,6 @@ static void allocateSpecialEntryInputVGP
     unsigned Reg = AMDGPU::VGPR1;
     MF.addLiveIn(Reg, &AMDGPU::VGPR_32RegClass);
 
-    assert(Reg == AMDGPU::VGPR1);
     CCInfo.AllocateReg(Reg);
     Info.setWorkItemIDY(ArgDescriptor::createRegister(Reg));
   }
@@ -1098,7 +1096,6 @@ static void allocateSpecialEntryInputVGP
     unsigned Reg = AMDGPU::VGPR2;
     MF.addLiveIn(Reg, &AMDGPU::VGPR_32RegClass);
 
-    assert(Reg == AMDGPU::VGPR2);
     CCInfo.AllocateReg(Reg);
     Info.setWorkItemIDZ(ArgDescriptor::createRegister(Reg));
   }




More information about the llvm-commits mailing list