This is an archive of the discontinued LLVM Phabricator instance.

[SDAG] remove shift that is redundant with part of funnel shift
ClosedPublic

Authored by spatel on Feb 21 2022, 10:32 AM.

Details

Summary

This is the SDAG translation of D120253 :
https://alive2.llvm.org/ce/z/qHpmNn

The SDAG nodes can have different operand types than the result value. We can see an example of that with AArch64 - the funnel shift amount is an i64 rather than i32.

We may need to make that match even more flexible to handle post-legalization nodes, but I have not stepped into that yet.

Diff Detail

Event Timeline

spatel created this revision.Feb 21 2022, 10:32 AM
spatel requested review of this revision.Feb 21 2022, 10:32 AM
RKSimon accepted this revision.Feb 24 2022, 2:31 AM

LGTM - cheers

This revision is now accepted and ready to land.Feb 24 2022, 2:31 AM
This revision was landed with ongoing or failed builds.Feb 24 2022, 8:25 AM
This revision was automatically updated to reflect the committed changes.