re PR target/51244 ([SH] Inefficient conditional branch and code around T bit)
authorOleg Endo <olegendo@gcc.gnu.org>
Tue, 4 Sep 2012 08:03:01 +0000 (08:03 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Tue, 4 Sep 2012 08:03:01 +0000 (08:03 +0000)
commitff596ca15ca105fc571e95cdf35c074cb4f011d4
treec07fbfdbec90f271f3495e4f0de1a986ff16687d
parent8945d42254c782529c006f7691d5bdc01fa90231
re PR target/51244 ([SH] Inefficient conditional branch and code around T bit)

PR target/51244
* config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
canonicalization code into...
* (sh_canonicalize_comparison): This new function.
* config/sh/sh-protos.h: Declare it.
* config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
* config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
always invoke expand_cbranchsi4.

From-SVN: r190909
gcc/ChangeLog
gcc/config/sh/sh-protos.h
gcc/config/sh/sh.c
gcc/config/sh/sh.h
gcc/config/sh/sh.md