Prefer INT_SSE_REGS for SSE_FLOAT_MODE_P in preferred_reload_class.
authorliuhongt <hongtao.liu@intel.com>
Tue, 30 Nov 2021 05:50:11 +0000 (13:50 +0800)
committerliuhongt <hongtao.liu@intel.com>
Mon, 6 Dec 2021 10:15:42 +0000 (18:15 +0800)
commitd1011a41efd121ede2f427c1dffd6ac62f92962e
tree94729c2f3fe0ae8c9611fb0e94632cd8d849a1f6
parent45116f342057b7facecd3d05c2091ce3a77eda59
Prefer INT_SSE_REGS for SSE_FLOAT_MODE_P in preferred_reload_class.

When moves between integer and sse registers are cheap.

2021-12-06  Hongtao Liu  <Hongtao.liu@intel.com>
    Uroš Bizjak  <ubizjak@gmail.com>
gcc/ChangeLog:

PR target/95740
* config/i386/i386.c (ix86_preferred_reload_class): Allow
integer regs when moves between register units are cheap.
* config/i386/i386.h (INT_SSE_CLASS_P): New.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr95740.c: New test.
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/testsuite/gcc.target/i386/pr95740.c [new file with mode: 0644]