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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D66589
[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.
Diff Detail
Event TimelinePetar.Avramovic added a parent revision: D66587: [GlobalISel] Fix narrowScalar for shifts to match algorithm from SDAG.Aug 22 2019, 6:31 AM Petar.Avramovic added a child revision: D66533: [MIPS GlobalISel] ClampScalar G_SHL, G_ASHR and G_LSHR . This revision is now accepted and ready to land.Aug 26 2019, 9:19 AM Closed by commit rGa393238422ec: [GlobalISel] Factor narrowScalar for G_ASHR and G_LSHR. NFC (authored by Petar.Avramovic). · Explain WhyAug 27 2019, 7:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 217400 llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
|