[all-commits] [llvm/llvm-project] bc5e7c: [pseudo] Fix bugs/inconsistencies in forest dump.
Sam McCall via All-commits
all-commits at lists.llvm.org
Wed Jun 29 13:58:06 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bc5e7ced1c7e6155e9d527f88a657793ffad4761
https://github.com/llvm/llvm-project/commit/bc5e7ced1c7e6155e9d527f88a657793ffad4761
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2022-06-29 (Wed, 29 Jun 2022)
Changed paths:
M clang-tools-extra/pseudo/lib/Forest.cpp
M clang-tools-extra/pseudo/test/glr.cpp
M clang-tools-extra/pseudo/unittests/ForestTest.cpp
M clang-tools-extra/pseudo/unittests/GLRTest.cpp
Log Message:
-----------
[pseudo] Fix bugs/inconsistencies in forest dump.
- when printing a shared node for the second time, don't print its children
(This keeps output proportional to the size of the structure)
- when printing a shared node for the second time, print its type only, not rule
(for consistency with above: don't dump details of nodes twice)
- don't abbreviate shared nodes, to ensure we can prune the tree there
Differential Revision: https://reviews.llvm.org/D128805
More information about the All-commits
mailing list