Add alternative_mask to ira_implicitly_set_insn_hard_regs
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 7 Aug 2015 16:18:09 +0000 (16:18 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 7 Aug 2015 16:18:09 +0000 (09:18 -0700)
commit8f3f5ac089f8850f64dad253bc54e31f450e9ddf
treee6b6eb42328572e63f292ea0725c48ed8916349c
parent0e360db97091f31bf8a16ec50e99b31ebe6c52e1
Add alternative_mask to ira_implicitly_set_insn_hard_regs

Since ira_implicitly_set_insn_hard_regs may be called outside of
ira-lives.c, it can't use the local variable, preferred_alternatives.
This patch adds an alternative_mask argument to
ira_implicitly_set_insn_hard_regs.

gcc/

PR rtl-optimization/67029
* ira-color.c: Include "recog.h" before including "ira-int.h".
* target-globals.c: Likewise.
* ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
adds an alternative_mask argument and use it instead of
preferred_alternatives.
* ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
* ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
* sched-deps.c: Include "ira-int.h" after including "ira.h".
(sched_analyze_insn): Update call to
ira_implicitly_set_insn_hard_regs.
* sel-sched.c: Include "ira-int.h" after including "ira.h".
(implicit_clobber_conflict_p): Update call to
ira_implicitly_set_insn_hard_regs.

gcc/testsuite/

PR rtl-optimization/67029
* gcc.dg/pr67029.c: New test.

From-SVN: r226724
gcc/ChangeLog
gcc/ira-color.c
gcc/ira-int.h
gcc/ira-lives.c
gcc/ira.h
gcc/sched-deps.c
gcc/sel-sched.c
gcc/target-globals.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr67029.c [new file with mode: 0644]