This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Why doesn't GCC generate conditional move for COND_EXPR?
- From: "Bingfeng Mei" <bmei at broadcom dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 24 Oct 2011 05:55:59 -0700
- Subject: Why doesn't GCC generate conditional move for COND_EXPR?
Hello,
I noticed that COND_EXPR is not expanded to conditional move
as MIN_EXPR/MAX_EXPR are (assuming movmodecc is available).
I wonder why not?
I have some loop that fails tree vectorization, but still contains
COND_EXPR from tree ifcvt pass. In the end, the generated code
is worse than if I don't turned -ftree-vectorize on. This
is on our private port.
Thanks,
Bingfeng Mei