[X86] Make sure we don't read too many operands from X86ISD::FMADDS1/FMADDS3 nodes...
authorCraig Topper <craig.topper@intel.com>
Thu, 9 Nov 2017 01:06:47 +0000 (01:06 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 9 Nov 2017 01:06:47 +0000 (01:06 +0000)
commit93e27d2ecc628304e52cc23a8b88ae918669c8bd
tree4946d433d4ebb0d5b30a1cddfb9a704ff3ccdf80
parent68fdef1f7a20f741026bfc71c99835f213d710ec
[X86] Make sure we don't read too many operands from X86ISD::FMADDS1/FMADDS3 nodes when doing FNEG combine.

r317453 added new ISD nodes without rounding modes that were added to an existing if/else chain. But all the previous nodes handled there included a rounding mode. The final code after this if/else chain expected an extra operand that isn't present for the new nodes.

llvm-svn: 317748
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/fma-fneg-combine.ll