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.
Paths
| Differential D88132
[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 Also update the OperationData constructor to use a Instruction&
Diff Detail
Event TimelineThis 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 Closed by commit rG7a3c643c3559: [SLP] Make HorizontalReduction::getOperationData take an Instruction* instead… (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 293802 llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
|