diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-05-16 04:01:23 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2017-05-16 04:01:23 +0000 |
commit | 994a43d27a7e844f569816f4947a8c4031f73cbc (patch) | |
tree | 183325033d7dc2813f6470c57b4cb3b6938cb25b /llvm/lib/Target/AMDGPU/AMDGPUMachineCFGStructurizer.cpp | |
parent | a0a6d59da822a7c250b4980e43e996b4435afd56 (diff) | |
download | bcm5719-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.cpp | 2 |
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)); } |