diff options
author | Tamar Christina <tamar.christina@arm.com> | 2023-05-05 13:36:43 +0100 |
---|---|---|
committer | Tamar Christina <tamar.christina@arm.com> | 2023-05-05 13:47:35 +0100 |
commit | c0ce29bc1ce329001b6c02bb3d34bcbb086e1b72 (patch) | |
tree | 8b80e344e2bf99764770e46dae7948e3b3f42b76 /libcpp | |
parent | e487fcc0f7466ea663a0fea52076337bebd42b8b (diff) | |
download | gcc-c0ce29bc1ce329001b6c02bb3d34bcbb086e1b72.zip gcc-c0ce29bc1ce329001b6c02bb3d34bcbb086e1b72.tar.gz gcc-c0ce29bc1ce329001b6c02bb3d34bcbb086e1b72.tar.bz2 |
match.pd: CSE the dump output check.
This is a small improvement in QoL codegen for match.pd to save time not
re-evaluating the condition for printing debug information in every function.
There is a small but consistent runtime and compile time win here. The runtime
win comes from not having to do the condition over again, and on Arm plaforms
we now use the new test-and-branch support for booleans to only have a single
instruction here.
gcc/ChangeLog:
PR bootstrap/84402
* genmatch.cc (decision_tree::gen, write_predicate): Generate new
debug_dump var.
(dt_simplify::gen_1): Use it.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions