[LLVMdev] Order of generated code in *GenFastISel.inc

Eric Christopher echristo at gmail.com
Wed Nov 5 13:19:53 PST 2014


>
>
> After discussing this with Bill Schmidt I did an experimental change in
> FastISelEmitter.cpp to use the instruction complexity to order the
> generated code pieces kind of like what is done for normal codegen.
> Instead of using a map I use a multimap because there are instructions
> with duplicate complexities.  I also fixed the broken testing that is
> done to look for errors and some other necessary changes.
>
> This works just fine for Power and looking through a few of the other
> generated .inc files doesn't appear to have broken anything obvious
> though the order is different.
>
> As this is a fairly significant change I am bringing it up for
> discussion here.
>
>
So yeah, Bill and I were talking about this at the Dev Meeting. I'm a fan
of this, and it's probably better than saying "Put this earlier/later in
the file to get the code generation you want"

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141105/aca6b974/attachment.html>


More information about the llvm-dev mailing list