diff options
author | Kristina Martsenko <kristina.martsenko@arm.com> | 2016-07-28 14:29:28 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco@gcc.gnu.org> | 2016-07-28 14:29:28 +0000 |
commit | dde23f43f9b80286ebed873431d7707a800f9043 (patch) | |
tree | f82b0fcf97f2cdf5376d6c3f63001934b8c4a480 /gcc/fortran/frontend-passes.c | |
parent | 89ac681e18c3eace27e14bf03ff028bacd37e841 (diff) | |
download | gcc-dde23f43f9b80286ebed873431d7707a800f9043.zip gcc-dde23f43f9b80286ebed873431d7707a800f9043.tar.gz gcc-dde23f43f9b80286ebed873431d7707a800f9043.tar.bz2 |
This patchset improves zero extend costs and code generation.
When zero extending a 32-bit register, we emit a "mov", but currently
report the cost of the "mov" incorrectly.
In terms of speed, we currently say the cost is that of an extend
operation. But the cost of a "mov" is the cost of 1 instruction, so fix
that.
In terms of size, we currently say that the "mov" takes 0 instructions.
Fix it by changing it to 1.
Bootstrapped and tested on aarch64-none-elf.
gcc/
* config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
From-SVN: r238820
Diffstat (limited to 'gcc/fortran/frontend-passes.c')
0 files changed, 0 insertions, 0 deletions