diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-11-15 00:04:19 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-11-15 00:04:19 +0000 |
commit | a15032ee7bce189634618226975ebf33a4e8e7aa (patch) | |
tree | b0952465e1c2f6afda1f2146fb03002de2d0b1d4 /gcc/tree-data-ref.c | |
parent | aeb2b1f7fbe1907f6ff6feaac4f042decd895765 (diff) | |
download | gcc-a15032ee7bce189634618226975ebf33a4e8e7aa.zip gcc-a15032ee7bce189634618226975ebf33a4e8e7aa.tar.gz gcc-a15032ee7bce189634618226975ebf33a4e8e7aa.tar.bz2 |
Optimize pool resource allocation
A recent change caused a performance regression. This restores the
previous performance and adds a performance test.
* scripts/check_performance: Allow tests to choose a -std flag.
* src/c++17/memory_resource.cc (bitset::get_first_unset()): Use local
variables of the right types. Call update_next_word() unconditionally.
* testsuite/20_util/unsynchronized_pool_resource/cons.cc: New test.
* testsuite/performance/20_util/memory_resource/pools.cc: New test.
* testsuite/util/testsuite_performance.h (time_counter): Allow
timer to be restarted.
From-SVN: r266164
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions