diff options
author | chriseth <chris@ethereum.org> | 2017-11-22 18:11:48 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-06 22:50:33 +0800 |
commit | e7ef227226fb3548ecea59d44108a5923afeffc6 (patch) | |
tree | e051b270153828db725793dd9206d3b424a60d09 /libjulia/optimiser/InlinableFunctionFilter.cpp | |
parent | 4bd9bcbc774cd1e9bf9f5db385ea82dd1dd54c2e (diff) | |
download | dexon-solidity-e7ef227226fb3548ecea59d44108a5923afeffc6.tar dexon-solidity-e7ef227226fb3548ecea59d44108a5923afeffc6.tar.gz dexon-solidity-e7ef227226fb3548ecea59d44108a5923afeffc6.tar.bz2 dexon-solidity-e7ef227226fb3548ecea59d44108a5923afeffc6.tar.lz dexon-solidity-e7ef227226fb3548ecea59d44108a5923afeffc6.tar.xz dexon-solidity-e7ef227226fb3548ecea59d44108a5923afeffc6.tar.zst dexon-solidity-e7ef227226fb3548ecea59d44108a5923afeffc6.zip |
Function inliner.
Diffstat (limited to 'libjulia/optimiser/InlinableFunctionFilter.cpp')
-rw-r--r-- | libjulia/optimiser/InlinableFunctionFilter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libjulia/optimiser/InlinableFunctionFilter.cpp b/libjulia/optimiser/InlinableFunctionFilter.cpp index db9f812d..37e21f0d 100644 --- a/libjulia/optimiser/InlinableFunctionFilter.cpp +++ b/libjulia/optimiser/InlinableFunctionFilter.cpp @@ -51,6 +51,8 @@ void InlinableFunctionFilter::operator()(FunctionDefinition const& _function) Assignment const& assignment = boost::get<Assignment>(bodyStatement); if (assignment.variableNames.size() == 1 && assignment.variableNames.front().name == retVariable) { + // FIXME: use code size metric here + // We cannot overwrite previous settings, because this function definition // would not be valid here if we were searching inside a functionally inlinable // function body. |