This is an archive of the discontinued LLVM Phabricator instance.

[GlobalIsel][X86] Legalize G_FREEZE
ClosedPublic

Authored by tschuett on Jun 9 2023, 12:09 AM.

Diff Detail

Event Timeline

tschuett created this revision.Jun 9 2023, 12:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2023, 12:09 AM
tschuett requested review of this revision.Jun 9 2023, 12:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2023, 12:09 AM
RKSimon added inline comments.Jun 9 2023, 2:41 AM
llvm/lib/Target/X86/X86LegalizerInfo.cpp
342

copy -> freeze?

347

Why do you need the second type idx?

llvm/test/CodeGen/X86/GlobalISel/legalize-freeze.mir
3

Add 32-bit test coverage as well

arsenm added inline comments.Jun 9 2023, 4:49 AM
llvm/lib/Target/X86/X86LegalizerInfo.cpp
342

Don't see the point of the comment if it just restates freeze. For those who don't know freeze, something stating it's just a copy kind of makes sense

347

freeze only has one

tschuett updated this revision to Diff 529920.Jun 9 2023, 5:11 AM
  • remove comment, it was inspired by AArch64
  • remove second type index
  • 32-bit test coverage does not work yet. The legalizer still has some gaps.
arsenm accepted this revision.Jun 9 2023, 6:09 PM
This revision is now accepted and ready to land.Jun 9 2023, 6:09 PM
This revision was landed with ongoing or failed builds.Jun 9 2023, 10:33 PM
This revision was automatically updated to reflect the committed changes.