[InstCombine] Update InstCombine to use poison instead of undef for shufflevector...
authorhyeongyu kim <gusrb406@snu.ac.kr>
Wed, 22 Sep 2021 13:39:54 +0000 (22:39 +0900)
committerhyeongyu kim <gusrb406@snu.ac.kr>
Wed, 22 Sep 2021 14:18:51 +0000 (23:18 +0900)
commite5aaf0332670577cc19ac67b07b10261da6fc1e1
tree1c3b29fbc30d75a0f40b2620a4212bea0cdf6133
parentc97820c50d73d05d3ec5679253206d1ac39d10ee
[InstCombine] Update InstCombine to use poison instead of undef for shufflevector's placeholder (1/3)

This patch is for fixing potential shufflevector-related bugs like D93818.
As D93818, this patch change shufflevector's default placeholder to poison.
To reduce risk, it was divided into several patches, and this patch is for InstCombineCasts.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D110226
clang/test/Headers/wasm.c
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/X86/x86-f16c-inseltpoison.ll
llvm/test/Transforms/InstCombine/X86/x86-f16c.ll
llvm/test/Transforms/InstCombine/cast.ll
llvm/test/Transforms/InstCombine/shuffle-cast-dist.ll
llvm/test/Transforms/InstCombine/shufflevec-bitcast-inseltpoison.ll
llvm/test/Transforms/InstCombine/shufflevec-bitcast.ll
llvm/test/Transforms/InstCombine/trunc-inseltpoison.ll
llvm/test/Transforms/InstCombine/trunc.ll
llvm/test/Transforms/InstCombine/vector-casts.ll