Simplify trivial VEC_COND_EXPR in expander.
authorliuhongt <hongtao.liu@intel.com>
Wed, 21 Oct 2020 05:05:16 +0000 (13:05 +0800)
committerliuhongt <hongtao.liu@intel.com>
Wed, 21 Oct 2020 09:33:53 +0000 (17:33 +0800)
commit9b5d50b7c6e34267b40bdeb4c145e9132d83762d
treeb71f269d5598aaf5ab5029604b1fc52bef151871
parent5244b4af5e47bc98a2a9cf36f048981583a1b163
Simplify trivial VEC_COND_EXPR in expander.

gcc/ChangeLog:

PR target/97506
* config/i386/i386-expand.c (ix86_expand_sse_movcc): Move
op_true to dest directly when op_true equals op_false.

gcc/testsuite/ChangeLog:

PR target/97506
* gcc.target/i386/pr97506.c: New test.
gcc/config/i386/i386-expand.c
gcc/testsuite/gcc.target/i386/pr97506.c [new file with mode: 0644]