This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add an extra fold for f32 extract(vdup(i32))
ClosedPublic

Authored by dmgreen on Jun 24 2021, 7:18 AM.

Details

Summary

This adds another small fold for extract of a vdup, between a i32 and a f32, converting to a BITCAST. This allows some extra folding to happen, simplifying the resulting code.

Diff Detail

Event Timeline

dmgreen created this revision.Jun 24 2021, 7:18 AM
dmgreen requested review of this revision.Jun 24 2021, 7:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2021, 7:18 AM
samtebbs accepted this revision.Jun 25 2021, 1:55 AM

Short and sweet, perfect.

This revision is now accepted and ready to land.Jun 25 2021, 1:55 AM
This revision was automatically updated to reflect the committed changes.