[PATCH] D80768: [X86] Ignore large code model in X86FastISel::X86MaterializeFP in 32-bit mode

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 16:32:17 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: echristo, rnk, efriedma.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Large code model doesn't mean anything to 32-bit mode. But nothing prevents it from being set. Ignore to avoid generating 64-bit mode only instructions.

As I write this, I think this code might be broken for X32 as well since pointer wouldn't be GR64 there.


https://reviews.llvm.org/D80768

Files:
  llvm/lib/Target/X86/X86FastISel.cpp
  llvm/test/CodeGen/X86/fast-isel-constpool.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80768.267074.patch
Type: text/x-patch
Size: 5879 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/d5b87a51/attachment.bin>


More information about the llvm-commits mailing list