Commit 8125d7e9 by Bernd Schmidt Committed by Bernd Schmidt

Prefer a temporary register over directly storing into memory.

From-SVN: r44649
parent acb0638d
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
* config/ia64/ia64.md (cond_opsi2_internal and splitters): New * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
patterns. patterns.
* expr.c (expand_expr, case COND_EXPR): Prefer working with a
temporary register than directly using a MEM.
2001-08-04 Hans-Peter Nilsson <hp@bitrange.com> 2001-08-04 Hans-Peter Nilsson <hp@bitrange.com>
* config/sh/sh.c (sh_asm_named_section): Fix typo in align * config/sh/sh.c (sh_asm_named_section): Fix typo in align
......
...@@ -8211,8 +8211,8 @@ expand_expr (exp, target, tmode, modifier) ...@@ -8211,8 +8211,8 @@ expand_expr (exp, target, tmode, modifier)
|| GET_CODE (original_target) == REG || GET_CODE (original_target) == REG
|| TREE_ADDRESSABLE (type)) || TREE_ADDRESSABLE (type))
#endif #endif
&& ! (GET_CODE (original_target) == MEM && (GET_CODE (original_target) != MEM
&& MEM_VOLATILE_P (original_target))) || TREE_ADDRESSABLE (type)))
temp = original_target; temp = original_target;
else if (TREE_ADDRESSABLE (type)) else if (TREE_ADDRESSABLE (type))
abort (); abort ();
......
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