[llvm] r176602 - Switch from std::vector to ArrayRef. Speedup FoldBitCast by 5x.

Nadav Rotem nrotem at apple.com
Wed Mar 6 17:39:05 PST 2013


Thanks. Fixed. 

On Mar 6, 2013, at 5:36 PM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:

> 
> On Mar 6, 2013, at 5:30 PM, Nadav Rotem <nrotem at apple.com> wrote:
> 
>> +  ArrayRef<Constant*> Ops(&C, 1);
>> +  ExprMapKeyType Key(opc, Ops);
> 
> Actually, ArrayRef has a OneElt constructor that does just this, so you can just say Key(opc, C).
> 
> /jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130306/76617f5d/attachment.html>


More information about the llvm-commits mailing list