summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-05-16 04:01:23 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-05-16 04:01:23 +0000
commit994a43d27a7e844f569816f4947a8c4031f73cbc (patch)
tree183325033d7dc2813f6470c57b4cb3b6938cb25b /llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
parenta0a6d59da822a7c250b4980e43e996b4435afd56 (diff)
downloadbcm5719-llvm-994a43d27a7e844f569816f4947a8c4031f73cbc.tar.gz
bcm5719-llvm-994a43d27a7e844f569816f4947a8c4031f73cbc.zip
AMDGPUCodeGen: Fix warnings in r303111. [-Wunused-variable]
llvm-svn: 303137
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp b/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
index ab8b137aa1b..6d2785ba1c6 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp
@@ -136,9 +136,11 @@ void PHILinearize::phiInfoElementAddSource(PHIInfoElementT *Info,
// sources, because we cannot have different registers with
// identical predecessors, but we can have the same register for
// multiple predecessors.
+#if !defined(NDEBUG)
for (auto SI : phiInfoElementGetSources(Info)) {
assert((SI.second != SourceMBB || SourceReg == SI.first));
}
+#endif
phiInfoElementGetSources(Info).insert(PHISourceT(SourceReg, SourceMBB));
}
OpenPOWER on IntegriCloud