]> granicus.if.org Git - llvm/commit
[AVX-512] Punt on fast-isel of truncates to i1 when AVX512 is enabled.
authorCraig Topper <craig.topper@gmail.com>
Tue, 28 Mar 2017 23:20:37 +0000 (23:20 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 28 Mar 2017 23:20:37 +0000 (23:20 +0000)
commitb032c49e1aa449e29581cead343659a5cb4ccea3
tree3bea61a0a2d8a9d1cc43eee9007d4dc1d048b55b
parent522a572e3cc75192d2c5fe94e4fd674d94c4a4a9
[AVX-512] Punt on fast-isel of truncates to i1 when AVX512 is enabled.

We should be masking the value and emitting a register copy like we do in non-fast isel. Instead we were just updating the value map and emitting nothing.

After r298928 we started seeing cases where we would create a copy from GR8 to GR32 because the source register in a VK1 to GR32 copy was replaced by the GR8 going into a truncate.

This fixes PR32451.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298957 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp