From 6ce54d0f336b3907dafcc9a3046ef56fd7913847 Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Mon, 19 Jan 2015 20:13:35 +0000 Subject: [PATCH] re PR rtl-optimization/64671 (s390-linux profiledbootstrap failure) 2015-01-19 Vladimir Makarov PR rtl-optimization/64671 * lra-remat.c (operand_to_remat): Don't consider jump and call insns. From-SVN: r219857 --- gcc/ChangeLog | 6 ++++++ gcc/lra-remat.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7bcc9bc9ac3..c0e751d9ee7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-01-19 Vladimir Makarov + + PR rtl-optimization/64671 + * lra-remat.c (operand_to_remat): Don't consider jump and call + insns. + 2015-01-19 David Edelsohn * config/rs6000/default64.h: Include rs6000-cpus.def. diff --git a/gcc/lra-remat.c b/gcc/lra-remat.c index 68146a11100..de5081a739a 100644 --- a/gcc/lra-remat.c +++ b/gcc/lra-remat.c @@ -413,6 +413,9 @@ operand_to_remat (rtx_insn *insn) struct lra_static_insn_data *static_id = id->insn_static_data; struct lra_insn_reg *reg, *found_reg = NULL; + /* Don't rematerialize insns which can change PC. */ + if (JUMP_P (insn) || CALL_P (insn)) + return -1; /* First find a pseudo which can be rematerialized. */ for (reg = id->regs; reg != NULL; reg = reg->next) /* True FRAME_POINTER_NEEDED might be because we can not follow -- 2.30.2