This is an archive of the discontinued LLVM Phabricator instance.

[LV] Always record recipe for optimized cast.
AbandonedPublic

Authored by fhahn on Nov 29 2021, 1:54 PM.

Details

Reviewers
Ayal
gilr
Summary

Currently the recipe for a cast instruction is not recorded, if the
using first-order recurrence comes *after* the optimized phi.

This patch adjusts the code to always record the recipe for optimized
cast instructions. This requires a bit of extra logic to check whether
recording was already requested.

Diff Detail

Event Timeline

fhahn created this revision.Nov 29 2021, 1:54 PM
fhahn requested review of this revision.Nov 29 2021, 1:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 29 2021, 1:54 PM
Herald added a subscriber: vkmr. · View Herald Transcript
fhahn abandoned this revision.Dec 5 2021, 5:04 AM

Removing of dead casts can be done directly in VPlan, so there's no need to record extra recipes: D115112