]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use NO_REGS in cost calculation when the preferred register class are not known yet.
authorliuhongt <hongtao.liu@intel.com>
Wed, 8 Feb 2023 04:42:27 +0000 (12:42 +0800)
committerliuhongt <hongtao.liu@intel.com>
Sun, 23 Apr 2023 01:56:06 +0000 (09:56 +0800)
commit0368d169492017cfab5622d38b15be94154d458c
tree3fcf3a546107467699d2e329abd7a17407c17fc7
parent6ab856aa49bef7c04efa6144a5048e129b3a058b
Use NO_REGS in cost calculation when the preferred register class are not known yet.

gcc/ChangeLog:

PR rtl-optimization/108707
* ira-costs.cc (scan_one_insn): Use NO_REGS instead of
GENERAL_REGS when preferred reg_class is not known.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr108707.c: New test.
gcc/ira-costs.cc
gcc/testsuite/gcc.target/i386/pr108707.c [new file with mode: 0644]