This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi.
This patch has been in sel-sched branch for a while. It makes haifa_classify_insn look into predicate and code parts of COND_EXEC to decide whether it traps or not, instead of assuming that all COND_EXECs trap. It also factors code duplication in handling of PARALLELs (by using recursion).
Bootstrapped and regtested on x64_64 with --disable-multilib and on ia64.
* gcc/haifa-sched.c (haifa_classify_insn): Rename to ... (haifa_classify_insn_pat): ... this. Re-structure. Improve handling of COND_EXECs. Use it ... * gcc/sched-int.h (haifa_classify_insn): ... Here. Reimplement.
--- gcc/haifa-sched.c (revision 31645) +++ gcc/haifa-sched.c (local)
int -haifa_classify_insn (const_rtx insn) +haifa_classify_insn_pat (rtx pat)
--- gcc/sched-int.h (revision 31645) +++ gcc/sched-int.h (local) @@ -829,7 +829,14 @@ extern ds_t ds_merge (ds_t, ds_t); extern void debug_ds (ds_t);
/* Functions in haifa-sched.c. */ -extern int haifa_classify_insn (const_rtx); +extern int haifa_classify_insn_pat (rtx); + +static inline int +haifa_classify_insn (const_rtx insn) +{ + return haifa_classify_insn_pat (PATTERN (insn)); +}
-- Maxim
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |