From: Matt Arsenault Date: Sat, 15 Aug 2015 00:12:32 +0000 (+0000) Subject: AMDGPU: Remove unnecessary assert X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d780cdc47b1a0df35090511a77fb7c03744decad;p=oota-llvm.git AMDGPU: Remove unnecessary assert These shouldn't ever be null. The number of successors was already asserted to be 2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245132 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp b/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp index a31a9d265cf..b469898bef5 100644 --- a/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp +++ b/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp @@ -156,7 +156,7 @@ bool SIFixSGPRLiveRanges::runOnMachineFunction(MachineFunction &MF) { NCD = PDT->findNearestCommonDominator(*NCD->succ_begin(), *(++NCD->succ_begin())); } - assert(SuccA && SuccB); + for (std::pair RegLR : SGPRLiveRanges) { unsigned Reg = RegLR.first; LiveRange *LR = RegLR.second;