diff options
author | Richard Biener <rguenther@suse.de> | 2022-03-23 14:53:49 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-03-23 15:57:33 +0100 |
commit | d9792f8d227cdd409c2b082ef0685b47ccfaa334 (patch) | |
tree | 5856fa65491d4df41a0f442c6974442497b15607 /gcc/fold-const.cc | |
parent | 1daa198aafd72925ca8dd8616385f523ff180d4a (diff) | |
download | gcc-d9792f8d227cdd409c2b082ef0685b47ccfaa334.zip gcc-d9792f8d227cdd409c2b082ef0685b47ccfaa334.tar.gz gcc-d9792f8d227cdd409c2b082ef0685b47ccfaa334.tar.bz2 |
target/102125 - alternative memcpy folding improvement
The following extends the heuristical memcpy folding path with the
ability to use misaligned accesses on strict-alignment targets just
like the size-based path does. That avoids regressing the following
testcase on arm
uint64_t bar64(const uint8_t *rData1)
{
uint64_t buffer;
memcpy(&buffer, rData1, sizeof(buffer));
return buffer;
}
when r12-3482-g5f6a6c91d7c592 is reverted.
2022-03-23 Richard Biener <rguenther@suse.de>
PR target/102125
* gimple-fold.cc (gimple_fold_builtin_memory_op): Allow the
use of movmisalign when either the source or destination
decl is properly aligned.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions