This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Use IRBuilder::CreateFNeg for __builtin_conj
ClosedPublic

Authored by craig.topper on Dec 30 2019, 12:37 PM.

Details

Summary

This replaces the fsub -0.0 idiom with an fneg instruction. We didn't see to have a test that showed the current codegen. Just some tests for constant folding and a test that was only checking the declare lines for libcalls. The latter just checked that we did not have a declare for @conj when using __builtin_conj.

Diff Detail

Event Timeline

craig.topper created this revision.Dec 30 2019, 12:37 PM
rjmccall accepted this revision.Dec 30 2019, 12:50 PM
This revision is now accepted and ready to land.Dec 30 2019, 12:50 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 30 2019, 1:38 PM