This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Handle any extend whilst lowering mull
ClosedPublic

Authored by dmgreen on Dec 27 2020, 5:19 AM.

Details

Summary

Demanded bits may turn a sext or zext into an anyext if the top bits are not needed. This currently prevents the lowering to instructions like mull, addl and addw. This patch fixes the mull generation by keeping it simple and treating them like zextends.

Diff Detail

Event Timeline

dmgreen created this revision.Dec 27 2020, 5:19 AM
dmgreen requested review of this revision.Dec 27 2020, 5:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 27 2020, 5:19 AM
RKSimon accepted this revision.Dec 31 2020, 3:08 AM

LGTM

This revision is now accepted and ready to land.Dec 31 2020, 3:08 AM
This revision was automatically updated to reflect the committed changes.