Allow empty value list in propagateMetadata(Inst, ArrayOf...)
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Fri, 7 May 2021 17:52:20 +0000 (12:52 -0500)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Fri, 7 May 2021 18:20:50 +0000 (13:20 -0500)
commit50cf0a1d1ae48bd0397b41a400e01c62975b6706
tree8e8e24b4052bded863e7bbab7e5138833c857b24
parentd8aba75a768033c326613d85e8789703cb4565d2
Allow empty value list in propagateMetadata(Inst, ArrayOf...)

This will allow writing
  propagateMetadata(Inst, collectInterestingValues(...))
without concern about empty lists. In case of an empty list,
Inst is returned without any changes.
llvm/lib/Analysis/VectorUtils.cpp