public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [google] Improve locus information during if-conversion (issue4526101)
@ 2011-06-02  1:04 Sharad Singhai
  2011-06-02 11:46 ` Diego Novillo
  0 siblings, 1 reply; 5+ messages in thread
From: Sharad Singhai @ 2011-06-02  1:04 UTC (permalink / raw)
  To: reply, dnovillo, gcc-patches

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

Thanks,
Sharad

2011-06-01  Sharad Singhai  <singhai@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [google] Improve locus information during if-conversion (issue4526101)
  2011-06-02  1:04 [google] Improve locus information during if-conversion (issue4526101) Sharad Singhai
@ 2011-06-02 11:46 ` Diego Novillo
  2011-06-02 12:47   ` Steven Bosscher
  2011-06-02 16:46   ` Sharad Singhai (शरद सिंघई)
  0 siblings, 2 replies; 5+ messages in thread
From: Diego Novillo @ 2011-06-02 11:46 UTC (permalink / raw)
  To: Sharad Singhai; +Cc: reply, gcc-patches

On Wed, Jun 1, 2011 at 21:03, Sharad Singhai <singhai@google.com> wrote:

> 2011-06-01  Sharad Singhai  <singhai@google.com>
>
>        Google Ref 39994
>        * ifcvt.c (noce_try_cmove_arith): Use the locus information
>        from the if-statment rather than the then path.

Could you elaborate how it improves locus information?  Is there a
test case you can add to the testsuite?  Or an example code fragment
that shows how is the locus better now?

OK for google/main.


Diego.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [google] Improve locus information during if-conversion (issue4526101)
  2011-06-02 11:46 ` Diego Novillo
@ 2011-06-02 12:47   ` Steven Bosscher
  2011-06-02 12:54     ` Diego Novillo
  2011-06-02 16:46   ` Sharad Singhai (शरद सिंघई)
  1 sibling, 1 reply; 5+ messages in thread
From: Steven Bosscher @ 2011-06-02 12:47 UTC (permalink / raw)
  To: Diego Novillo; +Cc: Sharad Singhai, reply, gcc-patches

On Thu, Jun 2, 2011 at 1:46 PM, Diego Novillo <dnovillo@google.com> wrote:
> On Wed, Jun 1, 2011 at 21:03, Sharad Singhai <singhai@google.com> wrote:
>
>> 2011-06-01  Sharad Singhai  <singhai@google.com>
>>
>>        Google Ref 39994
>>        * ifcvt.c (noce_try_cmove_arith): Use the locus information
>>        from the if-statment rather than the then path.
>
> Could you elaborate how it improves locus information?  Is there a
> test case you can add to the testsuite?  Or an example code fragment
> that shows how is the locus better now?
>
> OK for google/main.

Why can't this patch just go onto the trunk?
(Idem for some other google/main patches -- is there a merge plan??)

Ciao!
Steven

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [google] Improve locus information during if-conversion (issue4526101)
  2011-06-02 12:47   ` Steven Bosscher
@ 2011-06-02 12:54     ` Diego Novillo
  0 siblings, 0 replies; 5+ messages in thread
From: Diego Novillo @ 2011-06-02 12:54 UTC (permalink / raw)
  To: Steven Bosscher; +Cc: Sharad Singhai, reply, gcc-patches

On Thu, Jun 2, 2011 at 08:46, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> On Thu, Jun 2, 2011 at 1:46 PM, Diego Novillo <dnovillo@google.com> wrote:
>> On Wed, Jun 1, 2011 at 21:03, Sharad Singhai <singhai@google.com> wrote:
>>
>>> 2011-06-01  Sharad Singhai  <singhai@google.com>
>>>
>>>        Google Ref 39994
>>>        * ifcvt.c (noce_try_cmove_arith): Use the locus information
>>>        from the if-statment rather than the then path.
>>
>> Could you elaborate how it improves locus information?  Is there a
>> test case you can add to the testsuite?  Or an example code fragment
>> that shows how is the locus better now?
>>
>> OK for google/main.
>
> Why can't this patch just go onto the trunk?

Yes.  Every patch submitted for google/main also applies to trunk.  I
generally try to avoid approving patches that are not inside my
maintenance areas for trunk (unless the patch is obvious).

Sharad simply forgot to request trunk approval for this patch and I
forgot to remind him.  Sharad, could you mark future patches?

> (Idem for some other google/main patches -- is there a merge plan??)

The merge plan is to submit patches to trunk.  They are quickly moved
in google/main for scheduling reasons, but everything going to
google/main is automatically assumed to apply to trunk as well.

The only patches that we don't necessarily mean to apply to trunk are
the ones we put in google/integration (though some patches have
already been moved or approved for trunk).


Diego.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [google] Improve locus information during if-conversion (issue4526101)
  2011-06-02 11:46 ` Diego Novillo
  2011-06-02 12:47   ` Steven Bosscher
@ 2011-06-02 16:46   ` Sharad Singhai (शरद सिंघई)
  1 sibling, 0 replies; 5+ messages in thread
From: Sharad Singhai (शरद सिंघई) @ 2011-06-02 16:46 UTC (permalink / raw)
  To: Diego Novillo; +Cc: reply, gcc-patches

This patch improves precision of the line number information during
coverage mode. Yes, I need to add an example/test case. I was planning
to do that before I propose this patch for trunk as well.

Thanks,
Sharad

On Thu, Jun 2, 2011 at 4:46 AM, Diego Novillo <dnovillo@google.com> wrote:
>
> On Wed, Jun 1, 2011 at 21:03, Sharad Singhai <singhai@google.com> wrote:
>
> > 2011-06-01  Sharad Singhai  <singhai@google.com>
> >
> >        Google Ref 39994
> >        * ifcvt.c (noce_try_cmove_arith): Use the locus information
> >        from the if-statment rather than the then path.
>
> Could you elaborate how it improves locus information?  Is there a
> test case you can add to the testsuite?  Or an example code fragment
> that shows how is the locus better now?
>
> OK for google/main.
>
>
> Diego.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-06-02 16:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-02  1:04 [google] Improve locus information during if-conversion (issue4526101) Sharad Singhai
2011-06-02 11:46 ` Diego Novillo
2011-06-02 12:47   ` Steven Bosscher
2011-06-02 12:54     ` Diego Novillo
2011-06-02 16:46   ` Sharad Singhai (शरद सिंघई)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).