This patch improves locus information during the if-conversion. Okay for 
google/main?

Thanks,
Sharad

2011-06-01  Sharad Singhai  <sing...@google.com>

        Google Ref 39994
        * ifcvt.c (noce_try_cmove_arith): Use the locus information
        from the if-statment rather than the then path.

Index: ifcvt.c
===================================================================
--- ifcvt.c     (revision 174547)
+++ ifcvt.c     (working copy)
@@ -1670,7 +1670,7 @@
   if (!tmp)
     return FALSE;
 
-  emit_insn_before_setloc (tmp, if_info->jump, INSN_LOCATOR (if_info->insn_a));
+  emit_insn_before_setloc (tmp, if_info->jump, INSN_LOCATOR (if_info->jump));
   return TRUE;
 
  end_seq_and_fail:

--
This patch is available for review at http://codereview.appspot.com/4526101

Reply via email to