[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations

Dan Gohman gohman at apple.com
Wed May 20 16:55:39 PDT 2009


On May 20, 2009, at 1:34 PM, Eli Friedman wrote:


> On Wed, May 20, 2009 at 1:19 PM, Eli Friedman  
> <eli.friedman at gmail.com> wrote:
>
>> Per subject, this patch adding an additional pass to handle vector
>>
>> operations; the idea is that this allows removing the code from
>>
>> LegalizeDAG that handles illegal types, which should be a significant
>>
>> simplification.  There are still some issues with this patch, but  
>> does
>>
>> the approach look sane?

Can you explain why you chose the approach of using a new pass?
I pictured removing LegalizeDAG's type legalization code would
mostly consist of finding all the places that use TLI.getTypeAction
and just deleting code for handling its Expand and Promote. Are you
anticipating something more complicated?

Dan




More information about the llvm-dev mailing list