re PR rtl-optimization/69447 (wrong code with -O2 -fno-schedule-insns and mixed 8...
authorRichard Henderson <rth@gcc.gnu.org>
Wed, 27 Jan 2016 22:08:02 +0000 (14:08 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 27 Jan 2016 22:08:02 +0000 (14:08 -0800)
commitf75ebe779f546c9e9c8a66c56c04ebf5fe1b7dda
treeb73d554ab53c509b4cfa2110e4372821e41583a1
parent49847d759f449f0b299fae28932e996037338f88
re PR rtl-optimization/69447 (wrong code with -O2 -fno-schedule-insns and mixed 8/16/32/64bit arithmetics @ armv7a)

PR rtl-opt/69447

  * lra-remat.c (subreg_regs): New.
  (dump_candidates_and_remat_bb_data): Dump it.
  (operand_to_remat): Reject if operand in subreg_regs.
  (set_bb_regs): Collect subreg_regs.
  (lra_remat): Init and free subreg_regs.  Compute
  calculate_local_reg_remat_bb_data before create_cands.

From-SVN: r232905
gcc/ChangeLog
gcc/lra-remat.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr69447.c [new file with mode: 0644]