diff options
| author | Xiang Li <python3kgae@outlook.com> | 2025-05-02 10:41:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-02 10:41:14 -0400 |
| commit | c54122fe538f0edbf5a7a6f2a62bf4973a00262c (patch) | |
| tree | 32aaf08befecfa9e68c9ac7073f4b5e2322f1f8c /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | 580da48a93ea3065cced426bb37df65a933c21f7 (diff) | |
| download | llvm-c54122fe538f0edbf5a7a6f2a62bf4973a00262c.zip llvm-c54122fe538f0edbf5a7a6f2a62bf4973a00262c.tar.gz llvm-c54122fe538f0edbf5a7a6f2a62bf4973a00262c.tar.bz2 | |
[NFC][mlir][AsmPrinter] Don't compute resourceStr when --mlir-elide-resource-strings-if-larger=0 (#138275)
When skipping the printing of large DenseResourceElementsAttr with
--mlir-elide-resource-strings-if-larger,
we need to compute resourceStr to check if the string is small enough to
print.
With --mlir-elide-resource-strings-if-larger set to 0, nothing should be
printed, but we still compute the size.
This change will allow an early return when
--mlir-elide-resource-strings-if-larger=0, making the print process
faster.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
