This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Implemet narrowScalar for mul
ClosedPublic

Authored by arsenm on Jan 17 2019, 1:57 PM.

Diff Detail

Event Timeline

arsenm created this revision.Jan 17 2019, 1:57 PM
aemerson accepted this revision.Jan 25 2019, 10:09 AM

LGTM with minor change.

lib/CodeGen/GlobalISel/LegalizerHelper.cpp
1640

Need a check here to verify that NewTy == HalfTy otherwise bail out.

This revision is now accepted and ready to land.Jan 25 2019, 10:09 AM
arsenm marked an inline comment as done.Jan 25 2019, 10:14 AM
arsenm added inline comments.
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
1640

That's what I did originally, but this does break it down so that the newly created muls are broken down later. I originally had a test case with s128 mul, but it also requires narrowing for the shifts to be implemented

arsenm closed this revision.Jan 26 2019, 4:53 PM

r352300