[llvm-commits] [llvm] r48491 - in /llvm/trunk: lib/CodeGen/SelectionDAG/DAGCombiner.cpp test/CodeGen/X86/field-extract-use-trunc.ll

Christopher Lamb christopher.lamb at gmail.com
Wed Mar 19 10:15:13 PDT 2008


The isTruncateFree code would also report 'true' for an i27 -> i14  
truncate the way it's currently written, BTW.

On Mar 19, 2008, at 9:56 AM, Christopher Lamb wrote:

> DAGCombine runs both before and after legalize, so I don't think  
> you can assume that MVT::i1 will be promoted. As I said elsewhere,  
> checking if the sext operation is legal for the type didn't fix the  
> problem.
>
> On Mar 19, 2008, at 2:11 AM, Duncan Sands wrote:
>
>> Hi Evan,
>>
>>> Well... Actually it should return true. MVT::i1 is promoted to  
>>> MVT::i8
>>> so on x86 it really should be free.
>>
>> some operations involving i1 are considered legal on x86, for example
>> an extending load from i1.  Maybe this has something to do with it.
>>
>> Ciao,
>>
>> Duncan.
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> --
> Christopher Lamb
>
>
>

--
Christopher Lamb



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080319/7cc231cf/attachment.html>


More information about the llvm-commits mailing list