This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Check for powers of 2 for inverse funnel shift lowering
ClosedPublic

Authored by arsenm on Mar 29 2021, 2:28 PM.

Details

Summary

This doesn't make a practical difference since it would only be broken
if a target actually had a legal non-power-of-2 inverse shift.

Diff Detail

Event Timeline

arsenm created this revision.Mar 29 2021, 2:28 PM
arsenm requested review of this revision.Mar 29 2021, 2:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2021, 2:28 PM
Herald added a subscriber: wdng. · View Herald Transcript
foad added inline comments.Mar 30 2021, 1:44 AM
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
5354

No, it's the "WithInverse" lowering that might fail.

arsenm updated this revision to Diff 334281.Mar 30 2021, 3:12 PM

Fix being totally wrong

foad accepted this revision.Mar 31 2021, 2:04 AM

LGTM, thanks!

This revision is now accepted and ready to land.Mar 31 2021, 2:04 AM