[X86][AMX] Fix bug for amx cast tranform
authorLuo, Yuanke <yuanke.luo@intel.com>
Wed, 30 Mar 2022 09:20:22 +0000 (17:20 +0800)
committerLuo, Yuanke <yuanke.luo@intel.com>
Wed, 30 Mar 2022 09:22:30 +0000 (17:22 +0800)
commit1141c8b6fc1f50a58f4cedec8e43e669662c1715
tree08b1ecf8b79dbcbd12a0a6e46c42f56de06f584b
parent15972e37bad05b516f78f7879efb85521e4501b3
[X86][AMX] Fix bug for amx cast tranform

After combining amx cast operation, some amx cast intrinsic may be dead
code. This patch is to delete such dead code and avoid crash.
llvm/lib/Target/X86/X86LowerAMXType.cpp
llvm/test/CodeGen/X86/AMX/lat-transform-amx-bitcast.ll