mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
77ef2cd487
Add a new pass to split up (recursively): foo = {l, r}; into the following, with the right indices, iff the concatenation straddles a wide word boundary. foo[_:_] = r; foo[_:_] = l; This eliminates more wide temporaries. Another 23% speedup on VeeR EH2 high_perf. Also brings the predicted stack size from 8M to 40k.
33 lines
1016 B
C++
33 lines
1016 B
C++
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
//*************************************************************************
|
|
// DESCRIPTION: Verilator: Generic optimizations on a per function basis
|
|
//
|
|
// Code available from: https://verilator.org
|
|
//
|
|
//*************************************************************************
|
|
//
|
|
// Copyright 2003-2024 by Wilson Snyder. This program is free software; you
|
|
// can redistribute it and/or modify it under the terms of either the GNU
|
|
// Lesser General Public License Version 3 or the Perl Artistic License
|
|
// Version 2.0.
|
|
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
|
//
|
|
//*************************************************************************
|
|
|
|
#ifndef VERILATOR_V3FUNCOPT_H_
|
|
#define VERILATOR_V3FUNCOPT_H_
|
|
|
|
#include "config_build.h"
|
|
#include "verilatedos.h"
|
|
|
|
class AstNetlist;
|
|
|
|
//============================================================================
|
|
|
|
class V3FuncOpt final {
|
|
public:
|
|
static void funcOptAll(AstNetlist* nodep);
|
|
};
|
|
|
|
#endif // Guard
|