[DAG] canCreateUndefOrPoison - add freeze(insert_subvector(x,y,c)) -> insert_subvecto...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Sep 2022 12:41:33 +0000 (13:41 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Sep 2022 12:41:33 +0000 (13:41 +0100)
commit62cdfdab4d717e775a002349f3f65bee3037d426
tree675cf08ae1b73803ee471bb87229ca1be96a185c
parent3968844bffabb318df631860f58153d300a011cb
[DAG] canCreateUndefOrPoison - add freeze(insert_subvector(x,y,c)) -> insert_subvector(freeze(x),freeze(y),c) support

We already have plenty of assertions in place to ensure that the insertion index is constant and inrange
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/X86/freeze-vector.ll