[llvm-commits] [patch] X86FastISel can't handle loads through %fs or %gs

Nelson Elhage nelhage at nelhage.com
Mon Jun 14 18:25:43 PDT 2010


This patch causes X86FastIsel to bail out on loads through %fs or %gs
(i.e. address spaces > 255), which lets us fall back to regular isel and
correctly compile loads through those segment registers at -O0.

The addrspace(256) -> %GS feature is still buggy (See PR3966), but this
seems like a strict improvement, and I expect that feature is used
rarely enough that the performance cost of going through regular
instruction selection is probably acceptable.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x86-fast-isel-fs-load.diff
Type: text/x-diff
Size: 994 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100614/a6af1725/attachment.diff>


More information about the llvm-commits mailing list