This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add more pattern matching for f16 <-> f64 conversions
ClosedPublic

Authored by bsmith on Mar 23 2015, 8:12 AM.

Details

Reviewers
rengolin
Summary

This patch adds more pattern matching for f16 <-> f64 conversions, specifically when the conversion is done in two steps, f16 -> f32 -> f64 etc.

For example:

%1 = tail call float @llvm.convert.from.fp16.f32(i16 %0)
%conv = fpext float %1 to double

-->

vcvtb.f64.f16

Diff Detail

Repository
rL LLVM

Event Timeline

bsmith updated this revision to Diff 22471.Mar 23 2015, 8:12 AM
bsmith retitled this revision from to [ARM] Add more pattern matching for f16 <-> f64 conversions.
bsmith updated this object.
bsmith edited the test plan for this revision. (Show Details)
bsmith set the repository for this revision to rL LLVM.
bsmith added a subscriber: Unknown Object (MLST).
rengolin accepted this revision.Mar 23 2015, 8:51 AM
rengolin added a reviewer: rengolin.

LGTM, Thanks!

This revision is now accepted and ready to land.Mar 23 2015, 8:51 AM
bsmith closed this revision.Mar 23 2015, 9:02 AM

Thanks, committed as r232954.