Commit 7a4fbffc by Eric Botcazou

revert: tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Make case self-contained.

Revert:

	* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
	Make case self-contained.
	<ARRAY_REF>: Test TYPE_NONALIASED_COMPONENT flag.

From-SVN: r144028
parent afbe1660
2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <VIEW_CONVERT_EXPR>:
Make case self-contained.
<ARRAY_REF>: Test TYPE_NONALIASED_COMPONENT flag.
2009-02-07 Anatoly Sokolov <aesok@post.ru> 2009-02-07 Anatoly Sokolov <aesok@post.ru>
* config/avr/avr.c (avr_mcu_t): Add ata6289 device. * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
......
...@@ -1562,14 +1562,15 @@ may_be_nonaddressable_p (tree expr) ...@@ -1562,14 +1562,15 @@ may_be_nonaddressable_p (tree expr)
and make them look addressable. After some processing the and make them look addressable. After some processing the
non-addressability may be uncovered again, causing ADDR_EXPRs non-addressability may be uncovered again, causing ADDR_EXPRs
of inappropriate objects to be built. */ of inappropriate objects to be built. */
return is_gimple_reg (TREE_OPERAND (expr, 0)) if (is_gimple_reg (TREE_OPERAND (expr, 0))
|| !is_gimple_addressable (TREE_OPERAND (expr, 0)) || !is_gimple_addressable (TREE_OPERAND (expr, 0)))
|| may_be_nonaddressable_p (TREE_OPERAND (expr, 0)); return true;
/* ... fall through ... */
case ARRAY_REF: case ARRAY_REF:
case ARRAY_RANGE_REF: case ARRAY_RANGE_REF:
return TYPE_NONALIASED_COMPONENT (TREE_TYPE (TREE_OPERAND (expr, 0))) return may_be_nonaddressable_p (TREE_OPERAND (expr, 0));
|| may_be_nonaddressable_p (TREE_OPERAND (expr, 0));
CASE_CONVERT: CASE_CONVERT:
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment