This is more generic and matches isShuffleMaskLegal.
Under what circumstances would people want const SmallVectorImp<>& instead of ArrayRef<>?
Differential D48591
[TargetLowering] isVectorClearMaskLegal - use ArrayRef<int> instead of const SmallVectorImpl<int>& RKSimon on Jun 26 2018, 4:02 AM. Authored by
Details This is more generic and matches isShuffleMaskLegal. Under what circumstances would people want const SmallVectorImp<>& instead of ArrayRef<>?
Diff Detail
Event TimelineComment Actions Not sure when the ArrayRef would be insufficient, but it can always be changed back if that is actually necessary. LGTM.
Comment Actions If it is modified, then SmallVectorImpl is needed, obviously. Comment Actions Ah - thanks for the example. I didn't consider the codegen difference (generality and consistency of the source code are the main motivations here I think, but good to actually know about the potential perf difference). |