[PATCH] Consider error-reporting calls cold in BPI

Meador Inge meadori at codesourcery.com
Fri Jan 17 12:59:22 PST 2014


Chandler, Hal,

On 11/16/2013 06:32 PM, Chandler Carruth wrote:

> On Fri, Nov 15, 2013 at 4:40 PM, Hal Finkel <hfinkel at anl.gov
> <mailto:hfinkel at anl.gov>> wrote:
> 
>     Chandler, are you okay with me committing this as is? As noted, I think that
>     it matches the existing design.
> 
> 
> I suppose. This is bad enough that someone needs to go clean up the entire file
> immediately... but I guess I shouldn't hold up this patch on that front.

Many apologies for the delay.  I finally got around to taking a look at what we
can do to clean this file up.  I am not looking for a full review now (I will
send out a proper separate patch for that), but could y'all give it a quick
look to see if the general approach is better?  If the general approach is
OK, then I will do another pass to clean things up a bit more.

I believe I have simplified the design quite a bit and find the result much
more straight forward.  All the little classes are gone and I was able to drop
about 200 lines of code.

I am attaching the new file and diff since there is so much noise in the diff.

-- 
Meador Inge
CodeSourcery / Mentor Embedded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcall-simplifier-redux.patch
Type: text/x-patch
Size: 146208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140117/e4a40c74/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SimplifyLibCalls.cpp
Type: text/x-c++src
Size: 67107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140117/e4a40c74/attachment.cpp>


More information about the llvm-commits mailing list