This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r242153 - /branches/ARM/sve-branch/gcc/expr.c
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 11 Nov 2016 17:09:10 -0000
- Subject: r242153 - /branches/ARM/sve-branch/gcc/expr.c
Author: rsandifo
Date: Fri Nov 11 17:09:10 2016
New Revision: 242153
URL: https://gcc.gnu.org/viewcvs?rev=242153&root=gcc&view=rev
Log:
Use scalar_int_mode in expand_expr_addr_expr
This patch rewrites the condition:
if (tmode != address_mode && tmode != pointer_mode)
tmode = address_mode;
to the equivalent:
tmode == pointer_mode ? pointer_mode : address_mode
The latter has the advantage that the result is naturally
a scalar_int_mode.
Modified:
branches/ARM/sve-branch/gcc/expr.c