]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/42511 (bootstrap error in stage3 on alpha-linux-gnu)
authorUros Bizjak <uros@gcc.gnu.org>
Thu, 7 Jan 2010 13:02:34 +0000 (14:02 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 7 Jan 2010 13:02:34 +0000 (14:02 +0100)
PR target/42511
* ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
note itself is not function_invariant_p.

From-SVN: r155691

gcc/ChangeLog
gcc/ifcvt.c

index 5904c01873dc5744bb8daac44b6d978cdb632872..1e072f3782852d2af2a6fb641891180fbeec377b 100644 (file)
@@ -1,3 +1,9 @@
+2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/42511
+       * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
+       note itself is not function_invariant_p.
+
 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
 
        * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
@@ -84,7 +90,7 @@
        and adjust call to legitimize_pic_address.
        (sparc_output_mi_thunk): Likewise.
 
-2010-01-05  Paolo Bonzini  <bonzinI@gnu.rg>
+2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
            H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/42542
index 00ac61ec4786c237345ff15251d63a0f384bf821..c30b804933278c4c0e3a2df0a0d33d2948b4e5f0 100644 (file)
@@ -4087,7 +4087,8 @@ dead_or_predicable (basic_block test_bb, basic_block merge_bb,
          if (! note)
            continue;
          set = single_set (insn);
-         if (!set || !function_invariant_p (SET_SRC (set)))
+         if (!set || !function_invariant_p (SET_SRC (set))
+             || !function_invariant_p (XEXP (note, 0)))
            remove_note (insn, note);
        } while (insn != end && (insn = NEXT_INSN (insn)));