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

Jakob Stoklund Olesen stoklund at 2pi.dk
Mon Jan 9 09:54:48 PST 2012


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




More information about the llvm-commits mailing list