This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Factor narrowScalar for G_ASHR and G_LSHR. NFC
ClosedPublic

Authored by Petar.Avramovic on Aug 22 2019, 6:28 AM.

Details

Summary

Main difference is in the way Hi for Long shift (HiL) is made.
G_LSHR fills HiL with zeros, while G_ASHR fills HiL with sign bit value.

Diff Detail