This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Manifest constant return values
ClosedPublic

Authored by jdoerfert on Aug 21 2019, 1:29 PM.

Details

Summary

If the unique return value is a constant we now replace call uses with
that constant.

Diff Detail

Repository
rL LLVM

Event Timeline

jdoerfert created this revision.Aug 21 2019, 1:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2019, 1:30 PM
sstefan1 accepted this revision.Aug 21 2019, 2:14 PM

This is nice!

llvm/lib/Transforms/IPO/Attributor.cpp
807 ↗(On Diff #216462)

replace

This revision is now accepted and ready to land.Aug 21 2019, 2:14 PM
This revision was automatically updated to reflect the committed changes.