<div dir="ltr">+grosbach<div><br></div><div>This seems totally consistent with what was done on the LLVM IR side.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 27, 2014 at 12:26 PM, Robinson, Paul <span dir="ltr"><<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank">Paul_Robinson@playstation.sony.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+Philip Reames who offered to do the review.<br>
Restating the original email message:<br>
<div class="im HOEnZb"><br>
This patch disables a number of Machine Function Passes for functions<br>
with the 'optnone' attribute.<br>
<br>
To come up with the list of passes, I looked at CodeGen/Passes.cpp,<br>
and disabled whatever would be excluded under CodeGenOpt::None.<br>
Except, I did not disable anything listed in addOptimizedRegAlloc(),<br>
as I can't see how to substitute one RA pass sequence for another on<br>
a per-function basis.  Maybe there's a way to deal with that safely,<br>
but for now it seemed prudent (and not horribly harmful to the goals<br>
of 'optnone') to leave well enough alone.<br>
If anybody has an idea, we're open to it.<br>
</div><div class="im HOEnZb">--paulr<br>
<br>
> -----Original Message-----<br>
> From: <a href="mailto:llvm-commits-bounces@cs.uiuc.edu">llvm-commits-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:llvm-commits-">llvm-commits-</a><br>
> <a href="mailto:bounces@cs.uiuc.edu">bounces@cs.uiuc.edu</a>] On Behalf Of Robinson, Paul<br>
</div><div class="HOEnZb"><div class="h5">> Sent: Tuesday, March 25, 2014 9:53 AM<br>
> To: <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> Cc: Chandler Carruth (<a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>)<br>
> Subject: RE: [PATCH] Disable passes on optnone functions<br>
><br>
> Ping^3.  +chandlerc on the theory that nobody else is<br>
> willing to step on the toes of the Pass Manager Meister,<br>
> but I'll take review from anybody willing to do it.<br>
><br>
> This is the last of the LLVM pieces of the 'optnone' work.<br>
> It would be really really nice to put this to bed.<br>
> --paulr<br>
><br>
><br>
> > -----Original Message-----<br>
> > From: Robinson, Paul<br>
> > Sent: Monday, March 17, 2014 10:35 AM<br>
> > To: Robinson, Paul; <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> > Subject: RE: [PATCH] Disable passes on optnone functions<br>
> ><br>
> > Ping^2.<br>
> > --paulr<br>
> ><br>
> > > -----Original Message-----<br>
> > > From: <a href="mailto:llvm-commits-bounces@cs.uiuc.edu">llvm-commits-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:llvm-commits-">llvm-commits-</a><br>
> > > <a href="mailto:bounces@cs.uiuc.edu">bounces@cs.uiuc.edu</a>] On Behalf Of Robinson, Paul<br>
> > > Sent: Friday, March 07, 2014 9:47 AM<br>
> > > To: <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> > > Subject: RE: [PATCH] Disable passes on optnone functions<br>
> > ><br>
> > > Ping. Somebody willing to own MachineFunctionPass behavior?<br>
> > > --paulr<br>
> > ><br>
> > > > -----Original Message-----<br>
> > > > From: <a href="mailto:llvm-commits-bounces@cs.uiuc.edu">llvm-commits-bounces@cs.uiuc.edu</a> [mailto:<a href="mailto:llvm-commits-">llvm-commits-</a><br>
> > > > <a href="mailto:bounces@cs.uiuc.edu">bounces@cs.uiuc.edu</a>] On Behalf Of Robinson, Paul<br>
> > > > Sent: Monday, March 03, 2014 6:25 PM<br>
> > > > To: Nick Lewycky<br>
> > > > Cc: <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> > > > Subject: RE: [PATCH] Disable passes on optnone functions<br>
> > > ><br>
> > > > > -----Original Message-----<br>
> > > > > From: Nick Lewycky [mailto:<a href="mailto:nicholas@mxc.ca">nicholas@mxc.ca</a>]<br>
> > > > > Sent: Saturday, March 01, 2014 1:17 AM<br>
> > > > > To: Robinson, Paul<br>
> > > > > Cc: <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> > > > > Subject: Re: [PATCH] Disable passes on optnone functions<br>
> > > > ><br>
> > > > > Robinson, Paul wrote:<br>
> > > > > > This patch disables a number of Machine Function Passes for<br>
> > > > functions<br>
> > > > > > with the 'optnone' attribute.<br>
> > > > > ><br>
> > > > > > To come up with the list of passes, I looked at<br>
> > > CodeGen/Passes.cpp,<br>
> > > > > > and disabled whatever would be excluded under<br>
> CodeGenOpt::None.<br>
> > > > > > Except, I did not disable anything listed in<br>
> > > addOptimizedRegAlloc(),<br>
> > > > > > as I can't see how to substitute one RA pass sequence for<br>
> > another<br>
> > > on<br>
> > > > > > a per-function basis.  Maybe there's a way to deal with that<br>
> > > safely,<br>
> > > > > > but for now it seemed prudent (and not horribly harmful to the<br>
> > > goals<br>
> > > > > > of 'optnone') to leave well enough alone.<br>
> > > > > > If anybody has an idea, we're open to it.<br>
> > > > ><br>
> > > > > I note that I'm on the 'to' line, but I am certainly not the<br>
> right<br>
> > > > > person to review this. I know some high-level design of the<br>
> > codegen<br>
> > > > > parts, but that's about it.<br>
> > > ><br>
> > > > Ah, sorry.  You were there for me on the<br>
> > > {Function|BasicBlock|Loop}Pass<br>
> > > > part, I shouldn't have presumed about MachineFunctionPass.<br>
> > > ><br>
> > > > ><br>
> > > > > Would someone else please take a look?<br>
> > > > ><br>
> > > > > Nick<br>
> > > ><br>
> > > > --paulr<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > llvm-commits mailing list<br>
> > > > <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> > > > <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br>
</div></div><br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>