[llvm] [IR] Fix ignoring `non-global-value-max-name-size` in `ValueSymbolTable::makeUniqueName()`. (PR #89057)
Daniil Fukalov via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 10:28:05 PDT 2024
================
@@ -79,7 +79,7 @@ using ProfileCount = Function::ProfileCount;
// are not in the public header file...
template class llvm::SymbolTableListTraits<BasicBlock>;
-static cl::opt<unsigned> NonGlobalValueMaxNameSize(
+static cl::opt<int> NonGlobalValueMaxNameSize(
----------------
dfukalov wrote:
I've already added
```
; RUN: opt -S %s -O2 -o - -non-global-value-max-name-size=-1 | FileCheck -check-prefix=CHECK-LONG %s
```
in `llvm/test/Bitcode/value-with-long-name.ll`
https://github.com/llvm/llvm-project/pull/89057
More information about the llvm-commits
mailing list