[mlir][spirv] Put debug-only variable in LLVM_DEBUG
authorLei Zhang <antiagainst@google.com>
Mon, 12 Apr 2021 19:09:49 +0000 (15:09 -0400)
committerLei Zhang <antiagainst@google.com>
Mon, 12 Apr 2021 19:14:43 +0000 (15:14 -0400)
commitfd91f81c857a6d51957944f159c18c070eef81ed
tree2951b1539f307d5c8bc287f0e19a1555c1bd42cc
parentcfce5b26a888cb979d65252275df1f977dc1e6c8
[mlir][spirv] Put debug-only variable in LLVM_DEBUG

This avoids paying the cost when building in release.

Reviewed By: hanchung

Differential Revision: https://reviews.llvm.org/D100325
mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp