[llvm-commits] [PATCH]: dont emit long nops on AMD Geode

Roman Divacky rdivacky at freebsd.org
Wed Sep 12 10:08:57 PDT 2012


Hi,

it happens to be so that we unconditionaly emit long nops. Even on CPUs
that dont support those. See PR11212 for details.

The attached patch passes CPU option (StringRef) to MCAsmBackend
so that X86AsmBackend can use it and not emit long nops when the cpu
is "geode".

Thus fixing it. The patch is a little messy because I have to pass
the new argument everywhere.

It needs trivial clang adjustment too.

What do you think? Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-geode.patch
Type: text/x-diff
Size: 16858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120912/d43f436f/attachment.patch>


More information about the llvm-commits mailing list