[llvm] r177098 - LoopVectorize: Invert case when we use a vector cmp value to query select cost

Eric Christopher echristo at gmail.com
Thu Mar 14 14:20:50 PDT 2013


A couple of small nits here:

+
> +; CHECK: Checking a loop in "scalarselect"
> +define void @scalarselect(i1 %cond) nounwind uwtable ssp {
>

Don't really need the uwtable and ssp attributes here.


> +; A scalar select has a cost of 1 on core2
> +; CHECK: cost of 1 for VF 2 {{.*}}  select i1 %cond, i32 %6, i32 0
> +  %sel = select i1 %cond, i32 %6, i32 zeroinitializer
>

The checks mid-block are _really_ hard to see. Mind hoisting or providing
some vertical whitespace, or something? If you hoist you may want to
comment the particular select below that you're checking on as well, but...

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130314/ff5d8c2f/attachment.html>


More information about the llvm-commits mailing list