[InstCombine] Don't look through bitcast from vector in collectInsertionElements.
authorCraig Topper <craig.topper@sifive.com>
Wed, 20 Apr 2022 16:05:35 +0000 (09:05 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 20 Apr 2022 16:15:32 +0000 (09:15 -0700)
commite3f6c2d288ea4c67136fd88b2021ab7fb2b2f2b2
tree83a918093880d23bb10d9854bc3bf3f36973a7d1
parent11db0bb64d68b73c392867eca66f46f8ebdac84f
[InstCombine] Don't look through bitcast from vector in collectInsertionElements.

We're making a recursive call here and everything in the function
assumes we're looking at scalars. This would be violated if we
looked through a bitcast from vectors.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D124015
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/bitcast.ll