[SLP] Refactoring isLegalBroadcastLoad() to use `ElementCount`.
authorVasileios Porpodas <vporpodas@google.com>
Wed, 20 Apr 2022 15:17:29 +0000 (08:17 -0700)
committerVasileios Porpodas <vporpodas@google.com>
Thu, 21 Apr 2022 17:19:00 +0000 (10:19 -0700)
commit889588ee978ccfde69f4846b2e05cf23a36ce13e
tree6bc452ecdc3aeba0b8d8db8714b0267732c97811
parentf296b4c444625f84be1db27cfd52a3d16387f456
[SLP] Refactoring isLegalBroadcastLoad() to use `ElementCount`.

Replacing `unsigned` with `ElementCount` in the argument of `isLegalBroadcastLoad()`.
This helps reduce the diff of a future SLP patch for AArch64.
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/lib/Target/X86/X86TargetTransformInfo.h
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp