[llvm-commits] [llvm] r147765 - /llvm/trunk/lib/Target/X86/X86InstrSSE.td

Craig Topper craig.topper at gmail.com
Mon Jan 9 10:00:12 PST 2012


Ordering seems to be maintained even for patterns declared with
instructions and those wouldn't get an anonymous def would they?

On Mon, Jan 9, 2012 at 9:54 AM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote:

>
> On Jan 9, 2012, at 9:44 AM, Craig Topper wrote:
>
> > When patterns are collapsed the ordering of predicate checks is
> maintained. Not sure whether that's a feature or not, but it is what's
> making AVX2 broadcast instructions for integer vectors preferred over the
> FP versions. Maybe some other cases too.
>
> TableGen orders records alphabetically:
>
> class RecordKeeper {
>  std::map<std::string, Record*> Classes, Defs;
>
> There is a source location in Record, but it is only used for error
> reporting AFAICT.
>
> It is possible that the names invented for anonymous defs are source order
> related, but you shouldn't depend on it.  It is much too fragile.
>
> /jakob
>
>


-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120109/41c4b06f/attachment.html>


More information about the llvm-commits mailing list