dump() doesn't exist in release builds.
ld.lld: error: undefined symbol: llvm::Value::dump() const
>>> referenced by LowerMatrixIntrinsics.cpp
>>> LowerMatrixIntrinsics.o:((anonymous namespace)::LowerMatrixIntrinsics::Visit())
clEnumValN(MatrixLayoutTy::RowMajor, "row-major",
"Use row-major layout")));
-static cl::opt<bool> PrintAfterTransposeOpt("matrix-print-after-transpose-opt",
- cl::init(false));
-
/// Helper function to either return Scope, if it is a subprogram or the
/// attached subprogram for a local scope.
static DISubprogram *getSubprogram(DIScope *Scope) {
if (!isMinimal()) {
optimizeTransposes();
- if (PrintAfterTransposeOpt) {
+ LLVM_DEBUG({
dbgs() << "Dump after matrix transpose optimization:\n";
Func.dump();
- }
+ });
}
bool Changed = false;