This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by craig.topper on May 28 2020, 4:03 PM.

Details

Summary

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.

Diff Detail

Event Timeline

craig.topper created this revision.May 28 2020, 4:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 28 2020, 4:03 PM
Herald added a subscriber: hiraditya. · View Herald Transcript

With context

echristo accepted this revision.May 28 2020, 5:40 PM

One inline, otherwise looks great :)

llvm/lib/Target/X86/X86FastISel.cpp
3790

Comment please? :)

This revision is now accepted and ready to land.May 28 2020, 5:40 PM
craig.topper marked an inline comment as done.May 28 2020, 6:40 PM
craig.topper added inline comments.
llvm/lib/Target/X86/X86FastISel.cpp
3743

Should we also be ignoring code model here in 32 bit mode?

This revision was automatically updated to reflect the committed changes.