[llvm] r245132 - AMDGPU: Remove unnecessary assert

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 17:12:33 PDT 2015


Author: arsenm
Date: Fri Aug 14 19:12:32 2015
New Revision: 245132

URL: http://llvm.org/viewvc/llvm-project?rev=245132&view=rev
Log:
AMDGPU: Remove unnecessary assert

These shouldn't ever be null. The number of successors
was already asserted to be 2.

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

Modified: llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp?rev=245132&r1=245131&r2=245132&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp Fri Aug 14 19:12:32 2015
@@ -156,7 +156,7 @@ bool SIFixSGPRLiveRanges::runOnMachineFu
       NCD = PDT->findNearestCommonDominator(*NCD->succ_begin(),
                                             *(++NCD->succ_begin()));
     }
-    assert(SuccA && SuccB);
+
     for (std::pair<unsigned, LiveRange*> RegLR : SGPRLiveRanges) {
       unsigned Reg = RegLR.first;
       LiveRange *LR = RegLR.second;




More information about the llvm-commits mailing list