This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Make HorizontalReduction::getOperationData take an Instruction* instead of a Value*. NFCI
ClosedPublic

Authored by craig.topper on Sep 22 2020, 9:30 PM.

Details

Summary

All of the callers already have an Instruction *. Many of them
from a dyn_cast.

Also update the OperationData constructor to use a Instruction&
to remove a dyn_cast and make it clear that the pointer is non-null.

Diff Detail

Event Timeline

craig.topper created this revision.Sep 22 2020, 9:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2020, 9:30 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
craig.topper requested review of this revision.Sep 22 2020, 9:30 PM
RKSimon accepted this revision.Sep 23 2020, 2:02 AM

LGTM

This revision is now accepted and ready to land.Sep 23 2020, 2:02 AM
This revision was landed with ongoing or failed builds.Sep 23 2020, 10:52 AM
This revision was automatically updated to reflect the committed changes.