summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-08-15 00:12:32 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-08-15 00:12:32 +0000
commitb75233235c61eec5e11141a5a754fdfcb46c7fa8 (patch)
treeb3a000d42d56f94a63977fdb95942ae51c774a56 /llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
parent4275c29a02f45cfc3b7b5f891c7b5f82c2dfc3e1 (diff)
downloadbcm5719-llvm-b75233235c61eec5e11141a5a754fdfcb46c7fa8.tar.gz
bcm5719-llvm-b75233235c61eec5e11141a5a754fdfcb46c7fa8.zip
AMDGPU: Remove unnecessary assert
These shouldn't ever be null. The number of successors was already asserted to be 2. llvm-svn: 245132
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp b/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
index a31a9d265cf..b469898bef5 100644
--- a/llvm/lib/Target/AMDGPU/SIFixSGPRLiveRanges.cpp
+++ b/llvm/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<unsigned, LiveRange*> RegLR : SGPRLiveRanges) {
unsigned Reg = RegLR.first;
LiveRange *LR = RegLR.second;
OpenPOWER on IntegriCloud