[X86] In combineFMA, make sure we bitcast the result of isFNEG back the expected...
authorCraig Topper <craig.topper@intel.com>
Mon, 9 Jul 2018 17:43:24 +0000 (17:43 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 9 Jul 2018 17:43:24 +0000 (17:43 +0000)
commit47170b3153a4a494bbfd76d31e2fbb754dda34ec
tree161e7ab97c6c62904a775853a2a8cf12643c011c
parentd070659280c5d0902e5c83eeb0ece4ce77565893
[X86] In combineFMA, make sure we bitcast the result of isFNEG back the expected type before creating the new FMA node.

Previously, we were creating malformed SDNodes, but nothing noticed because the type constraints prevented isel from noticing.

llvm-svn: 336566
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx512-fma-intrinsics.ll