On Wed, Nov 21, 2018 at 12:50 AM Jeff Law <l...@redhat.com> wrote: > > + /* x86 targets use mode-switching infrastructure to > > + conditionally insert vzeroupper instruction at the exit > > + from the function and there is no need to switch the > > + mode before the return value copy. The vzeroupper insertion > > + pass runs after reload, so use !reload_completed as a > > stand-in > > + for x86 to skip the search for return value copy insn. > Note that the GCN target may well end up needing a late mode switching > pass -- it's got kindof an inverse problem to solve -- where to place > initializations of the exec register which is needed when we want to do > scalar ops in a simd unit. > > I thought the SH used mode switching as well. BUt I can't recall if it > was run before register allocation & reload.
SH mode switching ran before reload. Uros.