[SLP] Make HorizontalReduction::getOperationData take an Instruction* instead of...
authorCraig Topper <craig.topper@intel.com>
Wed, 23 Sep 2020 17:25:00 +0000 (10:25 -0700)
committerCraig Topper <craig.topper@intel.com>
Wed, 23 Sep 2020 17:51:03 +0000 (10:51 -0700)
commit7a3c643c35590df67716dfe3e3c60195ae385e43
tree0bc4870fc099cf82bc738c78bf4a2d0a42cdef17
parentf21f835ee8e52f128281697d66f8b11a50a6d5dd
[SLP] Make HorizontalReduction::getOperationData take an Instruction* instead of a Value*. NFCI

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.

Differential Revision: https://reviews.llvm.org/D88132
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp