This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, rtl]: Mode-switching: Mark block as nontransparent if its exiting mode != no_mode
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Joern Rennecke <joern dot rennecke at embecosm dot com>
- Date: Sun, 10 Nov 2013 17:45:17 +0100
- Subject: Re: [PATCH, rtl]: Mode-switching: Mark block as nontransparent if its exiting mode != no_mode
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4YkQkAa3pXJtK9oJpsjhsKkJ5mKTt0VYxrsHdT7VBL93Q at mail dot gmail dot com>
> Attached patch fixes an oversight in mode-switching. For blocks
> without ANY mode requirements, we have to consider instructions with
> MODE_AFTER mode changes. If the exiting mode from the block is
> different that no_mode (the mode we start), we have to mark the block
> as nontransparent.
>
> 2013-11-08 Uros Bizjak <ubizjak@gmail.com>
>
> * mode-switching.c (optimize_mode_switching): Mark block as
> nontransparent, if last_mode at block exit is different from no_mode.
>
> Bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32}
> core-avx-i configured bootstrap.
>
> OK for mainline and branches?
OK for mainline and 4.8 branch, if you complete the comment just above, for
example "from no_mode, in which case we need to..."
--
Eric Botcazou