tree-ssa-address.c (preferred_mem_scale_factor): Handle when mem_mode is BLKmode.

gcc/ChangeLog:

2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>

	* tree-ssa-address.c (preferred_mem_scale_factor): Handle when
	mem_mode is BLKmode.

From-SVN: r272465
This commit is contained in:
Kugan Vivekanandarajah 2019-06-19 01:42:21 +00:00 committed by Kugan Vivekanandarajah
parent 8666a0dc3a
commit 89649081c8
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
* tree-ssa-address.c (preferred_mem_scale_factor): Handle when
mem_mode is BLKmode.
2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
PR target/90922

View File

@ -1134,6 +1134,10 @@ unsigned int
preferred_mem_scale_factor (tree base, machine_mode mem_mode,
bool speed)
{
/* For BLKmode, we can't do anything so return 1. */
if (mem_mode == BLKmode)
return 1;
struct mem_address parts = {};
addr_space_t as = TYPE_ADDR_SPACE (TREE_TYPE (base));
unsigned int fact = GET_MODE_UNIT_SIZE (mem_mode);