This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][AArch64] Add instruction selection support for @llvm.log2
ClosedPublic

Authored by paquette on Jan 28 2019, 1:44 PM.

Details

Reviewers
aemerson
Summary

This teaches GlobalISel to emit a RTLib call for @llvm.log2 when it encounters it.

It updates the existing floating point tests to show that we don't fall back on the intrinsic, and select the correct instructions. It also adds a legalizer test for G_FLOG2.

Diff Detail

Event Timeline

paquette created this revision.Jan 28 2019, 1:44 PM
This revision is now accepted and ready to land.Jan 28 2019, 3:18 PM
paquette closed this revision.Jan 30 2019, 1:16 PM

Committed in r352673