This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Fix widenScalar for G_MERGE_VALUES to pointer
ClosedPublic

Authored by arsenm on Jul 30 2019, 12:45 PM.

Details

Summary

AMDGPU testcase isn't broken now, but will be in a future patch
without this.

Diff Detail

Event Timeline

arsenm created this revision.Jul 30 2019, 12:45 PM
dsanders accepted this revision.Jul 31 2019, 10:46 AM

LGTM with a nit

lib/CodeGen/GlobalISel/LegalizerHelper.cpp
995

I'd prefer it if this checked DstTy.isPointer() or at least asserted it. It's not very obvious that WideTy != DstTy => pointer

This revision is now accepted and ready to land.Jul 31 2019, 10:46 AM
arsenm closed this revision.Aug 1 2019, 11:12 AM
arsenm marked an inline comment as done.

r367591